This documentation is archived and is not being maintained.

Troubleshooting Exceptions: Microsoft.Office.Tools.RangeNotOnWorksheetException

A RangeNotOnWorksheetException exception is thrown when a view control is created programmatically with a range that is not from the worksheet that corresponds to the controls collection.

Make sure that the range you specify corresponds to the correct worksheet.

This exception is thrown when a view control is created programmatically with a range that is not from the worksheet that corresponds to the controls collection.

Show: