amurphy96822 OOo Enthusiast


Joined: 08 May 2005 Posts: 142 Location: Honolulu
|
Posted: Sat Aug 04, 2012 3:27 pm Post subject: macro stops working. error msg about object variable not set |
|
|
HII: I have a macro I have used for years, constructed with help from forum: basically it take a precription I have highlighted, saves as variable, goes back to file to find address, etc., calls up a blank prescription file, inserts it and prints.
One of the declared variables is newVC (new view cursor), this is declared as object.
But when the following line appears: newVC = newDoc.CurrentController.getViewCursor, it creates a msg: saying that object is not defined or something similar.
Not sure what this means, esp since I did not change anything.
Thanks _________________ WinXP or Vista or PCLinuxOs; usually Compaq Presario laptop/Dell Inspiron 1150/various desktops usually OpenOffice v3 |
|