This method checks for existing names to prevent identical name collisions within the worksheet collection.

Namespace:  Abh.Core.Excel2k7
Assembly:  Abh.Core.Excel2k7 (in Abh.Core.Excel2k7.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static bool IsExistingWorksheetName(
	string worksheetName,
	Sheets existingWorksheets
)
Visual Basic (Declaration)
Public Shared Function IsExistingWorksheetName ( _
	worksheetName As String, _
	existingWorksheets As Sheets _
) As Boolean
Visual C++
public:
static bool IsExistingWorksheetName(
	String^ worksheetName, 
	Sheets^ existingWorksheets
)

Parameters

worksheetName
Type: System..::.String
Pass in the worksheet name to check for.
existingWorksheets
Type: Sheets
Pass in the Excel worksheets collection to search in.

Return Value

Return true if existing worksheet name is found, false if no existing worksheet names.

See Also