Code: Select all
Option Explicit
'Based on https://forum.openoffice.org/en/forum/viewtopic.php?f=20&t=68059#p303317
Sub ChangeActiveSheet
Dim oSheet As Object
oSheet = ThisComponent.Sheets.getByName("Journal")
ThisComponent.CurrentController.Select(oSheet)
End Sub
How can I move the cursor to only cell A1 in order to unselect all cells ?