This documentation is archived and is not being maintained.

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

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;



Required String. The name of the new view.


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


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