VBA Command for "Resume Reading" to pick up where you left off (NOT shift + F5)

Hi there,

I need a VBA code that functions the same as clicking the Welcome back popup that says "Pick up where you left off" that I can use in a macro.

Please note that this is NOT the same as the Application.GoBack command or Shift+F5, as this takes you back to the place of your last EDIT.

Because the document that I want to do this in is not a document that I edit at all (it's used for referencing only), there are no edits to return to, so Shift+F5 does nothing. 

So to be clear, I want the VBA command that does the exact thing that clicking the "Pick up where you left off" popup does. 

Any help would be appreciated!

Answer
Answer

Actually, there is a command that should do it:

ActiveDocument.ReturnToLastReadPosition

if you put it in an AutoOpen macro, either in the document itself, which would then need to be saved in macro enabled format (*.docm) or in the normal.dotm template or a macro enabled template saved in the STARTUP folder.

The code should probably be

Sub Autoopen()
On Error Resume Next
ActiveDocument.ReturnToLastReadPosition
End Sub

so that an error message does not appear in case there is no LastReadPosition.

Hope this helps,
Doug Robbins - MVP Office Apps & Services (Word)
dougrobbinsmvp@gmail.com
Screen shots by Snagit from www.techsmith.com

5 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated April 5, 2021 Views 88 Applies to: