Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Feeling beatup by Combobox

This sounds strange but this is what i have. I have the
code written for when a user selects a item from a combo
box, it will take them to the desired worksheet.


Private Sub ComboBox1_Click()
Select Case ComboBox1.Value
Case 0
Case 1
Sheets("User Name Change").Select
Case 2
Sheets("Price plan change - vision").Select
Case 3
Sheets("Price plan change - I2K").Select
Case 4
Sheets("Add 1yr contract - vision").Select
Case 5
Sheets("Validate NPA NXX").Select
Case 6
Sheets("Group ID - Acct").Select
Case 7
Sheets("Group ID - MTN").Select

End Select
End Sub

But the problem is that i can not add the text to the
combobox. I can not find a way to show the text when you
click on the down arrow.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Feeling beatup by Combobox

List the sheets in a range on a worksheet and set the comboboxes
ListFillRange property to that range address(A1:A10 for instance)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Greg Hadrych" wrote in message
...
This sounds strange but this is what i have. I have the
code written for when a user selects a item from a combo
box, it will take them to the desired worksheet.


Private Sub ComboBox1_Click()
Select Case ComboBox1.Value
Case 0
Case 1
Sheets("User Name Change").Select
Case 2
Sheets("Price plan change - vision").Select
Case 3
Sheets("Price plan change - I2K").Select
Case 4
Sheets("Add 1yr contract - vision").Select
Case 5
Sheets("Validate NPA NXX").Select
Case 6
Sheets("Group ID - Acct").Select
Case 7
Sheets("Group ID - MTN").Select

End Select
End Sub

But the problem is that i can not add the text to the
combobox. I can not find a way to show the text when you
click on the down arrow.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Feeling beatup by Combobox

This worked but now when I click on of the names in the
drop down, nothing happens. Do I need to assign a macro
to each selection?

As far the other response, your second code worked, but
there are a few sheets I don't want to show. Is it
possible to manually enter in the sheet names?


-----Original Message-----
List the sheets in a range on a worksheet and set the

comboboxes
ListFillRange property to that range address(A1:A10 for

instance)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Greg Hadrych"

wrote in message
...
This sounds strange but this is what i have. I have the
code written for when a user selects a item from a combo
box, it will take them to the desired worksheet.


Private Sub ComboBox1_Click()
Select Case ComboBox1.Value
Case 0
Case 1
Sheets("User Name Change").Select
Case 2
Sheets("Price plan change - vision").Select
Case 3
Sheets("Price plan change - I2K").Select
Case 4
Sheets("Add 1yr contract - vision").Select
Case 5
Sheets("Validate NPA NXX").Select
Case 6
Sheets("Group ID - Acct").Select
Case 7
Sheets("Group ID - MTN").Select

End Select
End Sub

But the problem is that i can not add the text to the
combobox. I can not find a way to show the text when

you
click on the down arrow.



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Feeling beatup by Combobox

As far the other response, your second code worked,

Man am I glad to hear that.

but
there are a few sheets I don't want to show. Is it
possible to manually enter in the sheet names?


Something like this perhaps ?

Private Sub FillCombo()
With ComboBox1
..Clear
..AddItem "But"
..AddItem "Marge"
..AddItem "they're"
..AddItem "only"
..AddItem "space"
..AddItem "mutants"
End With
End Sub

HTH. Best wishes Harald



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Feeling beatup by Combobox

Using a list of names in a worksheet range, just don't add the names you
don't want. It's easier to maintain a worksheet than code (IMO).

As to the other question, Harald has answered that.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Greg Hadrych" wrote in message
...
This worked but now when I click on of the names in the
drop down, nothing happens. Do I need to assign a macro
to each selection?

As far the other response, your second code worked, but
there are a few sheets I don't want to show. Is it
possible to manually enter in the sheet names?


-----Original Message-----
List the sheets in a range on a worksheet and set the

comboboxes
ListFillRange property to that range address(A1:A10 for

instance)

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Greg Hadrych"

wrote in message
...
This sounds strange but this is what i have. I have the
code written for when a user selects a item from a combo
box, it will take them to the desired worksheet.


Private Sub ComboBox1_Click()
Select Case ComboBox1.Value
Case 0
Case 1
Sheets("User Name Change").Select
Case 2
Sheets("Price plan change - vision").Select
Case 3
Sheets("Price plan change - I2K").Select
Case 4
Sheets("Add 1yr contract - vision").Select
Case 5
Sheets("Validate NPA NXX").Select
Case 6
Sheets("Group ID - Acct").Select
Case 7
Sheets("Group ID - MTN").Select

End Select
End Sub

But the problem is that i can not add the text to the
combobox. I can not find a way to show the text when

you
click on the down arrow.



.





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,327
Default Feeling beatup by Combobox

It's not clear to me what your problem is. But if your combo contains sheet
names then

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

and if the problem is to make it contain sheet names then

Private Sub FillCombo()
Dim Sh As Object
With ComboBox1
..Clear
For Each Sh In ActiveWorkbook.Sheets
.AddItem Sh.Name
Next
End With
End Sub

HTH. Best wishes Harald


"Greg Hadrych" skrev i melding
...
This sounds strange but this is what i have. I have the
code written for when a user selects a item from a combo
box, it will take them to the desired worksheet.


Private Sub ComboBox1_Click()
Select Case ComboBox1.Value
Case 0
Case 1
Sheets("User Name Change").Select
Case 2
Sheets("Price plan change - vision").Select
Case 3
Sheets("Price plan change - I2K").Select
Case 4
Sheets("Add 1yr contract - vision").Select
Case 5
Sheets("Validate NPA NXX").Select
Case 6
Sheets("Group ID - Acct").Select
Case 7
Sheets("Group ID - MTN").Select

End Select
End Sub

But the problem is that i can not add the text to the
combobox. I can not find a way to show the text when you
click on the down arrow.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"too many different cell formats" - one more time with FEELING stumped-in-excel[_2_] Excel Discussion (Misc queries) 7 January 12th 09 08:19 PM
I have a feeling the order of my formula is out of order....HELP! Dan the Man[_2_] Excel Discussion (Misc queries) 3 September 11th 08 02:36 AM
fill combobox depending on selection from another combobox Adam Francis Excel Discussion (Misc queries) 2 July 24th 08 07:39 PM
How to view when all is hidden... (Feeling stoopid) Turquoise_dax Excel Discussion (Misc queries) 3 June 20th 06 05:30 PM
Combobox Scott Excel Programming 2 July 23rd 03 02:49 PM


All times are GMT +1. The time now is 02:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"