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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
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,213,496
Messages
6,113,995
Members
448,539
Latest member
alex78

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