CustomViews.Add Method

Creates a new custom view. Returns a CustomView object that represents the new view.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Add ( _
    ViewName As String, _
    PrintSettings As Object, _
    RowColSettings As Object _
) As CustomView
'Usage
Dim instance As CustomViews
Dim ViewName As String
Dim PrintSettings As Object
Dim RowColSettings As Object
Dim returnValue As CustomView

returnValue = instance.Add(ViewName, PrintSettings, _
    RowColSettings)
CustomView Add(
    string ViewName,
    Object PrintSettings,
    Object RowColSettings
)

Parameters

  • ViewName
    Type: System.String

    Required String. The name of the new view.

  • PrintSettings
    Type: System.Object

    Optional Object. True to include print settings in the custom view.

  • RowColSettings
    Type: System.Object

    Optional Object. True to include settings for hidden rows and columns (including filter information) in the custom view.

Return Value

Type: Microsoft.Office.Interop.Excel.CustomView

See Also

Reference

CustomViews Interface

CustomViews Members

Microsoft.Office.Interop.Excel Namespace