We help IT Professionals succeed at work.
Get Started

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

131 Views
Last Modified: 2019-12-03
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

Open in new window

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.
Comment
Watch Question
Consultant and developer
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 14 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant

An Experts Exchange subscription includes unlimited access to online courses.

Get Started
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE