Dialogue Box Drop Down

mrowe

Board Regular
Joined
Feb 17, 2002
Messages
232
Hi.

I want to include a combo box in a dialogue box that jumps to a one of 5 worksheets in the work book.

Basicly when the select the name of the worksheet i.e "London" it takes them there.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Mrowe

Can you explain in detail what you really need old friend ? :)

Email me if you need to :cool:
 
Upvote 0
Assuming your Dialog box is a userform...

Private Sub ComboBox1_Click()
Sheets(ComboBox1.Text).Select
End Sub

Private Sub UserForm_Initialize()

For Each s In Sheets
ComboBox1.AddItem s.Name
Next
ComboBox1.Text = ActiveSheet.Name

End Sub

You would also need to put something under ThisWorkbook like:

Private Sub Workbook_Open()
UserForm1.Show
End Sub

to get the dialog box to open when the workbook opens. If this doesn't answer your question, ask it again with more detail and I'll give it another try.

K
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,588
Members
449,039
Latest member
Arbind kumar

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