Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Apr 2004
    Location
    Albuquerque, New Mexico, USA
    Posts
    233
    Thanks
    0
    Thanked 1 Time in 1 Post
    I seem to recall a command line switch that allows Word to open and display the last document worked on. Am I dotty?

  2. #2
    3 Star Lounger
    Join Date
    Apr 2004
    Location
    Albuquerque, New Mexico, USA
    Posts
    233
    Thanks
    0
    Thanked 1 Time in 1 Post
    No switch found, but the following does the trick in Win2007. Create a macro:

    Code:
    Sub OpenLastDoc()
    '
    ' OpenLastDoc Macro
    ' Opens the document at the top of the Recently Opened list.
    '
        RecentFiles(1).Open
    End Sub
    Create a Desktop shortcut.

    Call the macro from the shortcut:

    Code:
    "c:\program files\microsoft office\office12\winword.exe" /mOpenLastDoc

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts
    Quote Originally Posted by Sundog View Post
    No switch found, but the following does the trick in Win2007.
    Clever!

  4. #4
    4 Star Lounger
    Join Date
    Jan 2010
    Location
    Chichester, UK
    Posts
    401
    Thanks
    1
    Thanked 10 Times in 9 Posts
    What should work is

    path/winword.exe /mfilen

    where n is the MRU cash position, so /mfile1 should open up the last document saved as it is top of the MRU.

    If you use Windows 7 (or Vista, I believe), right-click the Word icon in the Taskbar and it will display the MRU list: just click the top file to open Word with the document. In Windows 7, you can append a document permanently to the list.

    Terry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •