First time here? Check out the FAQ!
Simple question. I'd like to do something like Ctrl+Alt+S (or really, just using Ctrl+S itself) to save a version, so that I don't have to a) manually use the dialog box every time or b) Close->Save using the "automatic" versioning feature in LO (can you hear the sarcasm dripping from my quotes?).
Pointing me in the right direction would be great; gimme step-by-step instructions, and I'll mark you as the correct answer.
In addition to → How does the "always save version when closing" under File -> Versions work?:
Saving a version w/o dialog box
You might add this (recorded) macro to My Macros, and assign it to a shortcut key (e.g.: Ctrl+T):
sub new_version
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 ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = "VersionComment"
args1(0).Value = ""
dispatcher.executeDispatch(document, ".uno:Save", "", 0, args1())
end sub 
That will enter Date and time and Saved by, w/o any comment. The dialog box will not be opened, only the 'save' progress bar will appear.

You may deactivate ☐ Always save a version on closing (if you don't like it). ;)
LibreOffice is made available by volunteers around the globe, backed by a charitable Foundation. Please support our efforts: Your donation helps us to deliver a better product!
Asked: 2012-04-20 07:41:38 +0200
Seen: 186 times
Last updated: Apr 20 '12
Remove menu underline in Linux Mint 12 (Cinnamon)
how to create an keyboard shortcut for "add appear effect"
Absolute cell reference shortcut key
Where does LO store keyboards/shortcuts?
Has anyone installed LO 4 on a surface pro without a keyboard?
Are there plans for a Solaris version of LibreOffice?
Del Operator in Libreoffice Math
LibreOffice 4.0 CMIS integration
Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.