PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

X
Y
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
..WorksheetName is used to find out and modify the name of the current worksheet in a Spreadsheet control.
Reminder: If several worksheets are managed by the Spreadsheet control, the name of the worksheet appears in the tab used to select the worksheet (at the bottom of the Spreadsheet control).
Example
// Finds out whether a worksheet is named "US_Stat"
FOR i = 1 TO PSHEET_MySpreadsheet..NbWorksheet
PSHEET_MySpreadsheet..CurrentWorksheet = i
IF PSHEET_MySpreadsheet..WorksheetName = "US_Stat" THEN
RESULT i // Worksheet found
END
END
// Worksheet not found
RESULT 0
Syntax

Finding out the name of the current worksheet Hide the details

<Result> = <Spreadsheet>..WorksheetName
<Result>: Character string
Name of the current worksheet in the Spreadsheet control.
<Spreadsheet>: Character string (with or without quotes)
Name of Spreadsheet control to use.

Modifying the name of the current worksheet Hide the details

<Spreadsheet>..WorksheetName = <New Name>
<Spreadsheet>: Character string (with or without quotes)
Name of Spreadsheet control to use.
<New Name>: Character string (with quotes)
New name for the worksheet. The maximum size of this name is 32 characters.
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment