PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
Specifies a name to identify a cell found in a Spreadsheet control.
Example
// Creates a formula that references A1 and A2 with clearer names
SpreadsheetAddName(PSHEET_Spreadsheet1, "PriceBT", "$A$1")
SpreadsheetAddName(PSHEET_Spreadsheet1, "VAT", "$A$2")
SpreadsheetAddFormula(PSHEET_Spreadsheet1, "A3", "PriceBT*VAT")
Syntax
SpreadsheetAddName(<Spreadsheet Control> , <Cell Name> , <Cell> [, <Range> [, <Comment>]])
<Spreadsheet Control>: Control name
Name of Spreadsheet control to use.
<Cell Name>: Character string (with quotes)
Name that will be given to the cell.
Caution:
  • This parameter must not correspond to a cell name ("A1" for example) or to a function name ("SUM" for example).
  • This parameter must contain no space character.
  • SpreadsheetAddName fails if the specified name is invalid or if it already exists: the ErrorOccurred variable is set to True and ErrorInfo returns the error details.
<Cell>: Character string (with quotes)
Cell to name.
Caution: Absolute coordinates must be used to identify the cell (for example: "$A$1").
Indeed, the coordinates are relative in a cell name. Using the notation "A1", "A2", ... may trigger errors of circular references.
<Range>: Optional integer
Number of the worksheet where the name can be used. If this parameter is not specified or if it is set to 0, the name can be used in all the worksheets.
<Comment>: Optional character string (with quotes)
Versions 23 and later
Comment associated with the cell name (up to 255 characters).
New in version 23
Comment associated with the cell name (up to 255 characters).
Comment associated with the cell name (up to 255 characters).
Remarks
The names are not case sensitive (uppercase/lowercase characters)
Components
WINDEVReports and Queries wd230obj.dll
Minimum required version
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment