Export (0) Print
Expand All

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)

'Usage
Dim ViewName As String
Dim PrintSettings As Object
Dim RowColSettings As Object
Dim returnValue As CustomView
Dim customViews1 As CustomViews
returnValue = customViews1.Add(ViewName, PrintSettings, RowColSettings)

CustomView Add(
	[In] string ViewName, 
	[In, Optional] object PrintSettings, 
	[In, Optional] object RowColSettings
);
public CustomView Add(
	/*in*/System.String ViewName, 
	/*in*/System.Object PrintSettings, 
	/*in*/System.Object RowColSettings
);
function Add(
	 ViewName : String, 
	 PrintSettings : Object, 
	 RowColSettings : Object
) : CustomView;

Parameters

ViewName

Required String. The name of the new view.

PrintSettings

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

RowColSettings

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions

ADD
Show:
© 2014 Microsoft