VBA code to go to specific cell specified in formula (e.g. drill down)

LeanAccountant

New Member
Joined
Jan 8, 2014
Messages
2
I'm sure I've seen this somewhere before (so I apologise), but I can't seem to find the answer...

I'm trying to write code to act like a hyperlink and go to a target cell specified in a cell. For example, in Sheet 1 cell A1 could be displaying a value (or text) as a direct link to Sheet 2 cell G4 so I would like a macro to double click on Sheet A1 and jump to Sheet 2 G4. I've already used a double click formula a couple of times recently, but can't find a way to extract the formula from the cell and use that to go to the destination.

Although I plan to specify which cells (e.g. A1) the macro will act on, I presently need to specify the destination too (e.g. G4), but I would prefer to be able to specify the destination as a variable (i.e. whatever the cell contents are).

Thanks for any help/guidance.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Forum statistics

Threads
1,196,268
Messages
6,014,339
Members
441,816
Latest member
Klingon1960

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top