If, Then, Else

mcreary

New member
Local time
Today, 05:06
Joined
Aug 30, 2006
Messages
4
I need help in writing a quick and dirty code that will return specific values if certain conditionsIf then else function. I have a hundred conditions. IIF Hierarchy Like "CESS*" Or "CXXA*" Or "CLKAA*" Then Return "line Of Business". If Hierarchy Like......etc

Please help
 
Actually you could use the Select case statement instead of IF-Else-End If. Look it up in VBA help for some examples.
 
I agree with the Select/Case, though with that many options I'd wonder if a lookup table was feasible.
 

Users who are viewing this thread

Back
Top Bottom