Skip to main content

ExcelGetCurrentSheetName

Structure

ExcelGetCurrentSheetName

Type

Function

Description

This function returns the name of the current sheet as a string.

Parameters

Example

Try
ExcelNewFile(3,"v2003")
ShowMessage(ExcelGetSheetCount) 'shows 3
ExcelGetSheetByIndex(1)
ShowMessage(ExcelGetCurrentSheetName) 'shows "Sheet1"
Except
ShowMessage(LastExceptionMessage)
End Try