ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The WorksheetName property is used to get or change the name of the current worksheet in a Spreadsheet control.
Reminder If the Spreadsheet control manages multiple worksheets, the name of the worksheet appears in the worksheet selection tab (at the bottom of the Spreadsheet control).
Example
// Recherche si une feuille de calcul a pour nom "FR_Stat"
FOR I = 1 TO TBLR_MonTableur.NbFeuille
	TBLR_MonTableur.FeuilleEnCours = I
	IF TBLR_MonTableur.NomFeuille = "FR_Stat" THEN
		RETURN I // Feuille de calcul trouvée
	END
END
// Feuille de calcul pas trouvée
RETURN 0
Syntax

Getting the name of the current worksheet Hide the details

<Result> = <Spreadsheet control>.WorksheetName
<Result>: Character string
Name of the current worksheet in the Spreadsheet control.
<Spreadsheet control>: Control name
Name of the Spreadsheet control to be used.

Modifying the name of the current worksheet Hide the details

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

Last update: 05/10/2025

Send a report | Local help