Is there a programmatic way to access the "Recent Documents" list? I have tried sending keystrokes via the user interface. Since Alt + F activates the Office button/File ribbon, then...
SendKeys "%f"
SendKeys "{right}"
But when I assign the macro to Alt + D(which is how I want this to work), the hotkey Alt + the SendKeys Alt conflict. I have also tried
SendKeys "{F10}" ' an alternative way to focus the ribbon
SendKeys "f"
SendKeys "{right}"
But the hotkey Alt causes the SendKeys statement to send Alt + F10, which by default is AppMaximize. I disabled Alt + F10, but still no luck.
Since the quick-and-dirty solutions are not working, I am hoping to find a more elegant and direct way to access the list of recent documents, and assign it to Alt + D.
Thanks for this, David. I can see that your code processes all of the documents in the Application.RecentFiles collection, but the list of documents is not displayed, so a document cannot be chosen.
Not exactly. I want to produce the same list of documents that appears in "Recent Documents," i.e., the list that allows a user to scroll through the list of recent documents, and choose one to open.
The "ideal" solution would be to give direct access to the list of Recent Documents: that's the list that is to the right when you click (or otherwise give focus) to the Office button.
Background: One of my clients is blind, and accesses a computer via a screen reader. In Word 2003, I added "&Documents" as a top-level menu. This custom menu contained only the list of recently opened documents. (I constructed it by making a copy of the "File" menu, and deleting everything from it except the list of recent documents.)
Now, my client is migrating to Word 2010. Screen reader access to ribbons is more complicated than screen reader access to menus, and he asks that that keyboard interaction with Word 2010 be as similar as practical to what he is used to.
Is there a way to display only the list of Recent Documents, with its "pin" buttons, that normally appears to the right of the Office button/File ribbon?