BASIC Runtime Error Object Variable Not set

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Mark_in_Hollywood
Posts: 2
Joined: Tue Jun 10, 2008 8:05 pm

BASIC Runtime Error Object Variable Not set

Post by Mark_in_Hollywood »

After using the Wizard to create a FAX template, everytime I call the template, I get an error message.
basic-runtime-error.png
And the Macro Editor screen comes up and has highlighted text on one line.
Pilot.png
How do I fix this?
OOo 2.4.X on Ubuntu 8.x
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: BASIC Runtime Error Object Variable Not set

Post by Villeroy »

For the records: The offending Basic code is in shared "OOo Macros", library "Template", module "Correspondence", sub "OK".
I guess, this code won't run neither when you copy it on top of a new module:

Code: Select all

Sub test
  x=createUnoService("com.sun.star.ui.dialogs.AddressBookSourcePilot")
  x.execute()
End Sub
On my system it pops up a dialog. On your system it raises the same error again, I think.
I suggest, you remove all the buggy openoffice.org packages from Ubuntu and install Sun's original edition. [Tutorial] Installing OOo on Ubuntu, Debian and Co.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply