Key shrtcut to go back to recently used cell?

S

Studebaker

Hello,

I could have sworn there was a keyboard shortcut--I thought it was a
function key--to return you to the cell you last used--i.e., you were in A2
but moved to B100 to type something but want to go back to A2. I think I have
even used this keyboard shortcut in Word.
I've looked on the internet and cannot find info re: this.

Can someone help?

Thank you!
 
G

Gord Dibben

Nothing native to Excel.

You would have to use code to store the A2 and code to go back to A2.

Maybe you had such code when you were able to do this before?


Sub storeit()
'store the currently selected cell
Set currentSelection = Application.ActiveCell
currentSelection.Name = "oldrange"
End Sub

Sub goback()
'return to the original cell
Range("oldrange").Select
End Sub


Gord Dibben MS Excel MVP
 
S

Studebaker

Thank you, the code worked.
I guess it was just in Word where I used a shortcut key to go back to where
my cursor was previously.

Thanks for your help!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top