Ask Your Question

macro that duplicates and save file

asked 2018-01-04 19:55:38 +0200

quercia gravatar image

I In my macro I have to copy the file I'm working on and I have to save it with another name, ie I have to make a duplicate. I can't find a command to save the file

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2018-01-04 20:33:03 +0200

Lupp gravatar image

updated 2018-01-05 10:41:08 +0200

You may make a nextInterURL from ThisComponent.URL by string functions or in another way and then use

ThisComponent.StoreToURL(nextInterURL, Array())

The original URL of the document (to which the next Save will go) is not changed by SaveToURL StoreToURL. If you want to shift the URL of the open document, use SaveAsURL.

edit flag offensive delete link more


is not changed by SaveToURL

You mean, by StoreToURL()?

gabix gravatar imagegabix ( 2018-01-05 09:33:50 +0200 )edit

Thanks! Will make correction.

Lupp gravatar imageLupp ( 2018-01-05 10:39:24 +0200 )edit

answered 2018-01-05 09:22:13 +0200

quercia gravatar image

I solved with your suggestion, Thanks so much

edit flag offensive delete link more


Do not use the answer option for a comment. Write a comment instead. If the answer is satisfactory, better upvote it and tick as the correct answer (it looks like you have done the latter but not the former).

gabix gravatar imagegabix ( 2018-01-05 09:29:03 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-01-04 19:55:38 +0200

Seen: 380 times

Last updated: Jan 05 '18