The Andrew N. Wiggins Consultancy

Contact me at webmaster@anw.biz

Experimental Site

 

This site designed by Byg Software Ltd

 

The ANW.BIZ Home Page
Up

Ranges - Return

 
Before leaving my current sheet, I would like to memorize the sheet and the cell address that I am about to leave, so that another short-cut can bring me back to my exact departure point.
 
''However, before leaving my current sheet, I would like to memorize the
''sheet and the cell address that I am about to leave, so that another
''short-cut can bring me back to my exact departure point.

Dim HomeCell As Range

Public Sub Memorise()
    Set HomeCell = ActiveCell
    Application.GoTo Range("Sheet1!A1")
End Sub

Public Sub GoBack()
    HomeCell.Worksheet.Activate
End Sub
 
 

 
 
   

Published: 17 January 2004
Last edited: 19 May 2008 16:43