Hello - I hope you are well and in a peaceful mind.
I’m using LibreOffice 26.2.4.2 on MacBook Air running OS 15.6.1.
I have recorded a macro to insert special character U + F050. I ran the macro via the user interface and got the error message “BASIC runtime error. Property or method not found: getText”.
The macro is
Sub InsertCustomCharacter
Dim oDoc As Object
Dim oCursor As Object
Dim oText As Object
oDoc = ThisComponent
oText = oDoc.getText()
oCursor = oText.createTextCursor()
’ Insert the character using its Unicode value
oText.insertString(oCursor, ChrW(&HF050), False)
End Sub
What’s the fix for this?