display sheet choices in combo box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to have a combo box give the user a choice of sheets within a
workbook, and to then open the selected sheet?

Wazooli
 
Yes, but why bother? You can do the same thing by right-clicking on the
VCR-type buttons at the bottom left of the workbook window.
 
Sub Drpdwn_Click()
Dim sSheet as String, sName as String
sname = Application.Caller
With Activesheet.DropDowns(sName)
sSheet = .List(.ListIndex)
End With
Worksheets(sSheet).Activate
End Sub

To load you forms Dropdown/Combobox

sub LoadBox()
Dim sh as Worksheet
with Activesheet.DropDowns("Drop Down 1")
.RemoveAllItems
for each sh in ThisWorkbook.Worksheets
.AddItem sh.Name
Next
End With
End Sub
 
Thanks Tom. I'm glad you can appreciate what I am trying to accomplish. I
will try this the next chance I get.

Wazooli
 
Again, that is a combobox from the Forms toolbar. Not from the Control
Toolbox Toolbar. If you want to use the latter, post back.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top