troubleshooting Question

Microsoft Word- Return to Previous Cursor/Edit Position Using A Button

Avatar of Jason Steward
Jason Steward asked on
Microsoft WordMicrosoft 365VBA
14 Comments1 Solution141 ViewsLast Modified:
I have a Definitions section in my Word document.  I am using Office 365.  The document is an owner's manual, and I am referencing the same definitions multiple times.  The definitions are 200 pages past the primary references.  I'd like to be able to click on a hyperlink taking me to the definition of a word (already done that...  easy), THEN once I'm there, I'd like to click on a button or a hyperlink to take me back to the original position/cursor location/page regarless of where in the document user was reading on prior to navigating to the definition of a key term.

I tried using a button with SendKeys in VBA:  
Private Sub CommandButton1_Click()

    VBA.SendKeys ("{Ctrl}{Alt}{Z}")
End Sub
I get a Runtime Error #5 with this, "Invalid procedure call or argument".

My first preference would be to hyperlink to return to previous page, but I can't seem to find any way to accomplish this.
Neil Fleming
Consultant and developer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 14 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 14 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros