ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Goto a referenced cell (https://www.excelbanter.com/excel-programming/361746-goto-referenced-cell.html)

mburkett

Goto a referenced cell
 
Is there a way to go to a cell address written in another cell.
Example: In cell E13 I have the text "H12". I want the macro to look at
cell E13, read the value H12 and goto cell H12. Thanks for your help in
advance.

Michael


Ron de Bruin

Goto a referenced cell
 
Hi

Try this

Dim var As String
var = Range("E13").Value
Application.Goto Range(var)


--
Regards Ron de Bruin
http://www.rondebruin.nl


"mburkett" wrote in message oups.com...
Is there a way to go to a cell address written in another cell.
Example: In cell E13 I have the text "H12". I want the macro to look at
cell E13, read the value H12 and goto cell H12. Thanks for your help in
advance.

Michael





All times are GMT +1. The time now is 12:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com