OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

macro stops working. error msg about object variable not set

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
amurphy96822
OOo Enthusiast
OOo Enthusiast


Joined: 08 May 2005
Posts: 142
Location: Honolulu

PostPosted: Sat Aug 04, 2012 3:27 pm    Post subject: macro stops working. error msg about object variable not set Reply with quote

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
Back to top
View user's profile Send private message AIM Address
JohnV
Administrator
Administrator


Joined: 07 Mar 2003
Posts: 9183
Location: Lexinton, Kentucky, USA

PostPosted: Sat Aug 04, 2012 4:35 pm    Post subject: Reply with quote

Is the line
newDoc = ThisComponent
is place?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group