![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 232
|
HI,
I'm after a solution to include a combo box in a dialogue box. The purpose is for a user to select a field from the combo box and it takes them to the worksheet in the workbook. i.e out of 5 choices they select "London", it takes them to the "London" worksheet. Can anyone help. Thanks |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Apr 2002
Location: Greenwood, SC
Posts: 677
|
The example below is for excel 2000 (which uses userforms instead of dialog sheets), but the principal is the same. Use the click event of the combobox to select the new sheet.
Private Sub ComboBox1_Click() Sheets(ComboBox1.Text).Select Unload Me End Sub K |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|