Hi.
I’m not used to using macros in Calc.
I have many worksheets in one file:
- Menu
- Sheet01
- Sheet02
…
In facts, each sheet is named by a person’s first and last name.
From the “Menu” sheet, I’d like to access to any sheet from a listbox (listbox and range of values ok). For the moment, I’ve made a test with a button :
Sub GoMenu
Dim strName As String
Dim objSheet As Object
strName = "Menu"
objSheet = ThisComponent.GetSheets().GetByName(strName)
ThisComponent.CurrentController.SetActiveSheet(objSheet)
End Sub
I have this button at the top of each sheet, so I can return to the menu with a single click.
I’m searching to adapt this macro so that it works with a listbox.
Thanks.