Version

Apply Method (CustomView)

Applies all options from the custom view to the associated workbook and its worksheets.
Syntax
'Declaration
 
Public Sub Apply() 
public void Apply()
Exceptions
ExceptionDescription
System.InvalidOperationException The custom view has previously been removed from its associated workbook.
Remarks

There is no state of the workbook indicating the custom view currently applied, so applying a custom view simply copies over all options saved with it to the workbook and its worksheet. If an applied custom view is then changed, those changes will not be updated on the workbook or worksheets. Instead, the custom view will need to be applied again for those changes to be reflected on the workbook or worksheet.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also