I’m running the latest version of Libre Office (7.4.6.1) and I’ve read a lot of the responses to this issue and as advised in the Base Guide, used their sample code *excerpt)
…
Sub Main
Dim oDoc As Object
Dim oDrawpage As Object
Dim oForm As Object
oDoc = thisComponent
oDrawpage = oDoc.drawpage
oForm = oDrawpage.forms.getByName(“MainForm”)
End Suba