Macro to "go to" specific cell in a different sheet

baheck9200

New Member
Joined
Jan 14, 2009
Messages
7
I have a seriew of drop-down combon boxes that ultimately "drill-down" to a resulting sheet & cell reference in cell F7. Based on the criteria selected in these drop-downs the resulting sheet & cell reference (cell F7) will change. I am looking for help with a macro that, when run, will take me to the sheet & cell referenced in cell F7. When I do a goto function it always remember the last place I went to and never goes to the latest data in cell F7.

Brent
 
The 's are the problem. Try

Code:
Sub gto()
Dim x
x = Split(Range("F7").Value, "!")
x(0) = Replace(x(0), "'", "")
Application.Goto reference:=Sheets(x(0)).Range(x(1))
End Sub
 
Upvote 0

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
I got it to work finally. I actually did it without a macro. I used the following formula:

=HYPERLINK(CONCATENATE(MID(E6,32,40),TEXT(F10,"text")))

Of course, there are 4 or 5 other formulas that lead up to this hyperlink formula, but it works and that is what matters.

Thanks for your help.
 
Upvote 0
I got it to work finally. I actually did it without a macro. ..., but it works and that is what matters.
FINE! what matters too is that you indicate whether you want VBA or not: you asked for VBA and were probably not aware that it could be done without VBA, but if you would have told that in your initial post, you would have gotten the HYPERLINK answer straight away

have a nice time,
Erik
 
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,893
Members
449,097
Latest member
dbomb1414

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