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 translation

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


Joined: 26 Feb 2003
Posts: 26

PostPosted: Tue Jul 18, 2006 11:53 pm    Post subject: macro translation Reply with quote

hello!


i have an macro in my excel book and i don't know how to translate this on oomacro:

ActiveWorkbook.Save
ActiveWorkbook.SaveAs Filename:= _
"ftp://10.9.1.10/depot/real.xls"


the recorded macro in oo require some parameters but i don't know how to put that.


thanks a lot
Back to top
View user's profile Send private message
uros
Super User
Super User


Joined: 22 May 2003
Posts: 601
Location: Slovenia

PostPosted: Wed Jul 19, 2006 9:36 pm    Post subject: Reply with quote

Hi laurentiu!
Simple save under the same name - file have to be saved before:
Code:
ThisComponent.store

File can be "saved as", in this case parameters are required. File can be save under new name:
Code:
sUrl = ConverToURL("C:/mydir/myfile.sxc"    ' if you use OOo 1.1.x
   ThisComponent.storeAsURL(sUrl, Array())

File can be exported to some other file type:
Code:
sUrl = ConverToURL("C:/mydir/myfile.sdc"
   mFileProperties(0).Name = "Overwrite"
   mFileProperties(0).Value = TRUE
   mFileProperties(1).Name = "FilterName"
   mFileProperties(1).Value = "StarCalc 5.0"
   ThisComponent.storeAsURL(sUrl, mFileProperties())
Hope this helps!
Uros
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