![]() |
![]() |
|
|||||||
| 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: Mar 2002
Posts: 119
|
I want to check if a combobox has one of two value before it runs a function.
I know &, +, is there an Or function that can be applied. I can not seem to find any reference to a syntax to use. The following comes back with a typemismatch. If combobox1.Text = ("Crit1") Or ("Crit2") Then |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Posts: 363
|
Try:
If combobox1.Text = ("Crit1") Or combobox1.Text = ("Crit2") Then
__________________
It's never too late to learn something new. Ricky |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 119
|
Worked like a charm.
THANKS |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|