Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How can i set a Combobox displayed on a userform to list the current
workbook sheet names? Corey.... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ok found this code, but it does not seem to popiulate the combobox with
anything though?? Private Sub ComboBox1_Click() Dim Sh As Worksheet Dim sVal As String With ComboBox1 sVal = .Text Clear For Each Sh In ActiveWorkbook.Sheets If Sh.Name < "Inputs" Then AddItem Sh.Name End If Next .Value = sVal Worksheets(.Value).Activate End With End Sub Any idea's Corey.... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub ComboBox1_Click()
If Len(ComboBox1.Value) Then Worksheets(ComboBox1.Value).Activate End If End Sub Private Sub ComboBox1_DropButtonClick() Dim Sh As Worksheet With ComboBox1 .Clear For Each Sh In ActiveWorkbook.Sheets If Sh.Name < "Inputs" Then .AddItem Sh.Name End If Next End With End Sub -- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware "Corey" wrote in message Ok found this code, but it does not seem to popiulate the combobox with anything though?? Private Sub ComboBox1_Click() Dim Sh As Worksheet Dim sVal As String With ComboBox1 sVal = .Text Clear For Each Sh In ActiveWorkbook.Sheets If Sh.Name < "Inputs" Then AddItem Sh.Name End If Next .Value = sVal Worksheets(.Value).Activate End With End Sub Any idea's Corey.... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you Jim.
Perfectly done.... ctm "Jim Cone" wrote in message ... Private Sub ComboBox1_Click() If Len(ComboBox1.Value) Then Worksheets(ComboBox1.Value).Activate End If End Sub Private Sub ComboBox1_DropButtonClick() Dim Sh As Worksheet With ComboBox1 .Clear For Each Sh In ActiveWorkbook.Sheets If Sh.Name < "Inputs" Then .AddItem Sh.Name End If Next End With End Sub -- Jim Cone San Francisco, USA http://www.realezsites.com/bus/primitivesoftware "Corey" wrote in message Ok found this code, but it does not seem to popiulate the combobox with anything though?? Private Sub ComboBox1_Click() Dim Sh As Worksheet Dim sVal As String With ComboBox1 sVal = .Text Clear For Each Sh In ActiveWorkbook.Sheets If Sh.Name < "Inputs" Then AddItem Sh.Name End If Next .Value = sVal Worksheets(.Value).Activate End With End Sub Any idea's Corey.... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Month Names as ComboBox List | Excel Programming | |||
Loading sheet names in Combobox | Excel Programming | |||
populate combobox with sheet names | Excel Programming | |||
populate combobox with sheet names | Excel Programming | |||
Populating sheet names in combobox | Excel Programming |