Autoopen Macro

  • Thread starter Thread starter David
  • Start date Start date
D

David

Way back in the days of Word 6 I had a macro to move the cursor to the
point at which I was last working, Goback I think was the command, but
I'm not sure. What is the VBA equivalent?

Thanks

David
 
David

The command is still available and assigned to the F5 key.

--
Terry Farrell - Word MVP
http://www.mvps.org/word/

Way back in the days of Word 6 I had a macro to move the cursor to the
point at which I was last working, Goback I think was the command, but
I'm not sure. What is the VBA equivalent?

Thanks

David
 
David

The command is still available and assigned to the F5 key.

In my copy of Word 97 F5 brings up the "Find" dialog box. SHIFT+F5
does go back in an open document, but once it has been closed it
doesn't work when it is re-opened.

David
 
Actually, it's assigned to Shift+F5. To get your AutoOpen macro to work, the
easiest way would be to record it. You'll end up with something like:

Sub AutoOpen()
Application.GoBack
End Sub
 
But if you're thinking of storing the macro in the document, keep in mind
that your document will then you a macro warning on opening, which will
require an extra click or two. Much easier just to hit Shift+F5 after
opening!

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
But if you're thinking of storing the macro in the document, keep in mind
that your document will then you a macro warning on opening, which will
require an extra click or two. Much easier just to hit Shift+F5 after
opening!

But Shift+F5 doesn't work when re-opening, at least in my copy anyway.

David
 
It works here, unless multiple documents are open, in which case Shift+F5
takes me back to the last document/editing location of the files currently
open (cycles among the current location and the previous 3 locations where
editing occurred, even if those locations are in different open documents).
Note, here, Shift+F5 right after opening works only with .doc and .dot
files, but not with others, such at .rtf.
 
David

Sorry about the slip, but as my colleagues have pointed out, it is indeed
Shift+F5 and it has a bug in Word XP!

Terry

David

The command is still available and assigned to the F5 key.

In my copy of Word 97 F5 brings up the "Find" dialog box. SHIFT+F5
does go back in an open document, but once it has been closed it
doesn't work when it is re-opened.

David
 
Note, here, Shift+F5 right after opening works only with .doc and .dot
files, but not with others, such at .rtf.

That's the problem, I've been saving as .rtf. Will revert to .doc

Thanks to all,

David
 
Back
Top