Drop Down and Command Button

KPAN8

New Member
Joined
Apr 1, 2004
Messages
1
Hi All,

I have created a drop down menu which contains Table 1 to Table 10 and a command button called "Go".
I want the user to choose the Table from the drop down menu. THen click the 'Go' button and it will point the to the relevant cell which contains the table. Does anyone know how to do this? It is in the VBA.

Thanks.


yours,
Eddie o_O
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
The Goto (F5) key can do this very well.

In any case, in VBA:

Application.Goto Range("rangename")

the sheet name may have to be prefixed, depending on the context.

ps:the code will go in the CommanButton's Click Event procedure.
 
Upvote 0

Forum statistics

Threads
1,215,424
Messages
6,124,817
Members
449,190
Latest member
rscraig11

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