I can’t use keybinds to open recent files, so I thought that we could bypass that using a macro. Has anyone tried this?
I can: alt d z 5 opens 5th Document from file-history
**the keys depends on your locale, start with alt and look which chars in the menu are underscored…
with english UI its alt f u 5
sub showFirstRecent
with GlobalScope.Basiclibraries
If Not .IsLibraryLoaded("Tools") Then .LoadLibrary("Tools")
end with
key = GetRegistryKeyContent("/org.openoffice.Office.Histories/Histories/org.openoffice.Office.Histories:HistoryInfo['PickList']/OrderList/org.openoffice.Office.Histories:HistoryOrder['0']", false)
MsgBox key.HistoryItemRef
end sub
Thanks for replying! In spanish is Alt+a+d
, but I prefer to use a custom shorter shortcut like Alt+r
.
Hi, thanks for the comment! to me it just shows the name of the most recent file. What I’m looking for is a macro that opens the menu list of the recent files.
Sure. You are given a code that provides the file. You are welcome to continue from here.
Hmm, you expect the menu to open and expand to a wanted position? Then use what @karolus offered, period.
You can try extension History Master
Hi, I did install it, but I can’t make it open it with shortcuts, and it also shows the whole path, which hides the name of the files when they have long paths
I cannot understand what you try to do. @karolus has already given you the solution using a sequence of keys:
1 - alt Select the menu
2 - F Open the File menu
3 - U open the Recent Documents menu
4 - With any number (5 ) you open the document with that number (5th).
Hi again, thanks for your time! What I want is to be able to use my own custom shortcut, just like copy and paste, I could use Alt+e+c
and Alt+e+p
, but it’s much better to just use Ctrl+c
and Ctrl+v
.