ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Spreadsheet functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Saves:
  • the scrollbar position in a Spreadsheet control for the current worksheet,
  • the current worksheet in the Spreadsheet control,
  • the selected elements in the Spreadsheet control for the current worksheet.
These elements can be restored by <Spreadsheet>.RestorePositionAndSelection.
Example
let MySave = PSHEET_Spreadsheet1.SavePositionAndSelection()
 
// Displays the B1 cell in bold
PSHEET_Spreadsheet.SelectPlus("B1")
PSHEET_Spreadsheet.StyleSelection(psheetBold, True)
 
// Restores the position/selection
PSHEET_Spreadsheet1.RestorePositionAndSelection(MySave)
Syntax
<Result> = <Spreadsheet control>.SavePositionAndSelection()
<Result>: Character string
<Spreadsheet control>: Control name
Name of the Spreadsheet control to be used.
Component: wd290obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help