Page 1 of 1
[Solved] Keep original name after File → Save As
Posted: Mon Mar 24, 2025 6:45 pm
by THEBookMan
When I am working with a file: "XYZ.MAIN.sxc" and do a "save as" to "xyz.BU.szc", The file that is active is "XYZ.BU.sxc" rather than "XYZ.MAIN.szc"
Is there a way, after I do a backup, to come back to the same file I was working on ?
Thanks,
⌡im [THE BookMan]
Re: Keep original name
Posted: Mon Mar 24, 2025 6:51 pm
by RoryOF
Yes, you have to close the newly named file and reopen the original, which should show on the Recent Documents list.
Re: Keep original name after File → Save As
Posted: Mon Mar 24, 2025 7:31 pm
by THEBookMan
As I have been doing .....Thanks, ⌡im [THE BookMan]
Re: Keep original name after File → Save As
Posted: Mon Mar 24, 2025 7:41 pm
by RoryOF
Remember that the originally named file does not have the latest alteration, unless it was Saved immediately before the Save As, which gives it the new name. Ctrl S is the quick (and should be instinctive) way to Save a file.
Re: Keep original name after File → Save As
Posted: Mon Mar 24, 2025 8:40 pm
by Lupp
Also 1:
Every document has an interface allowing
This method stores a copy of the document as it currently is to a different file under any location and name described as an URL. The open document will continue to be editable under the old URL (FilePath)
Code: Select all
Sub storeCopy()
oDoc = ThisComponent
oDoc.storeAsURL(oDoc.URL & ".copy", Array())
End Sub
would store the document's persistent content using an "extended extension" like
.odt.copy e.g.
With the help of >Tools>Customize you can add the command to a menu or a toolbar.
If you want to be more flexible concerning the new location and name, it gets more complicated.
Also 2:
LibreOffice has a menu entry ">File>Save a Copy..." offering more flexibility without needing user code.
Re: Keep original name after File → Save As
Posted: Mon Mar 24, 2025 8:42 pm
by Hagar Delest
File > Save a copy (at least in LO).
Please add
[Solved] at the beginning of the title in your
first post (top of the topic) with the
✎ button if your issue has been fixed.