Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have combobox1. There can be 52 different possible
values in the combobox. How do I set up a case statement that will say... If combobox1.value = 1 then a if 2 then b if 3 then c and so on.... Thank you |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Todd,
Select Case ComboBox1.Text Case "1" '/ do a Case "2" '/ do b Case Else '/ didn't match End Select That is, unless you can figure out a way to make your process simpler (ie, less than 52 cases). -- Regards, Jake Marx MS MVP - Excel www.longhead.com [please keep replies in the newsgroup - email address unmonitored] Todd Huttenstine wrote: I have combobox1. There can be 52 different possible values in the combobox. How do I set up a case statement that will say... If combobox1.value = 1 then a if 2 then b if 3 then c and so on.... Thank you |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Todd
have a look at the VBA help :-) try something like '... Select Case combobox1.value case 1 'do something for 1 case 2 'do something for 2 '... case Else 'don't know what to do end select '... -- Regards Frank Kabel Frankfurt, Germany Todd Huttenstine wrote: I have combobox1. There can be 52 different possible values in the combobox. How do I set up a case statement that will say... If combobox1.value = 1 then a if 2 then b if 3 then c and so on.... Thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF Statements to Select Case??? | Excel Discussion (Misc queries) | |||
Case Statements in Excel 2003 | Excel Discussion (Misc queries) | |||
Changing multiple cell text from lower case to upper case | Excel Discussion (Misc queries) | |||
Change the text from lower case to upper case in an Excel work boo | Excel Discussion (Misc queries) | |||
Limits on Case Statements | Excel Programming |