'Declaration
Public Overloads Function Add( _ ByVal sourceWorksheetName As String, _ Optional ByVal visibility As WorksheetVisibility _ ) As Worksheet
'Usage
Dim instance As WorksheetCollection Dim sourceWorksheetName As String Dim visibility As WorksheetVisibility Dim value As Worksheet value = instance.Add(sourceWorksheetName, visibility)
public Worksheet Add( string sourceWorksheetName, WorksheetVisibility visibility )
Parameters
- sourceWorksheetName
- Identifies the Worksheet that will be added to the WorksheetCollection by using a string that corresponds to its name.
- visibility
- Sets how the added Worksheet is displayed. The default setting is Visible.