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. Get our unique weekly Newsletter with tips and techniques, how to's and critical updates on Windows 7, Windows 8, Windows XP, Firefox, Internet Explorer, Google, etc. Join our 480,000 subscribers!

    Excel 2013: The Missing Manual

    + Get this BONUS — free!

    Get the most of Excel! Learn about new features, basics of creating a new spreadsheet and using the infamous Ribbon in the first chapter of Excel 2013: The Missing Manual - Subscribe and download Chapter 1 for free!

  3. #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

  4. #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!

  5. #4
    4 Star Lounger
    Join Date
    Jan 2010
    Location
    Chichester, UK
    Posts
    400
    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
  •