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

Record Macro for Insert Sheet

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
PeteS
General User
General User


Joined: 12 Feb 2005
Posts: 43

PostPosted: Tue May 10, 2005 8:17 am    Post subject: Record Macro for Insert Sheet Reply with quote

When I try to Record Macro for Insert > Sheet From File, (where I specify the filename in the next dialog) the generated dispatch line is commented out, as if OO can't support it!

Why is that?
Back to top
View user's profile Send private message
PeteS
General User
General User


Joined: 12 Feb 2005
Posts: 43

PostPosted: Tue May 10, 2005 9:47 am    Post subject: Reply with quote

Similarly, when I record an Insert > Names > Define where I add a new named range, I get the same rem'd code:
Code:

sub DefineName
rem ----------------------------------------------------------------------
rem define variables
dim document   as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
rem dispatcher.executeDispatch(document, ".uno:DefineName", "", 0, Array())
end sub
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