Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
More Efficient IF
Hello
I've got a convaluted IF statement: -- If Variable = 1 or Variable = 3 or Variable = 7 or Variable = 12 Then -- Using other languages you could for example do something like this: -- If Variable MATCHES (1,3,7,12) Then -- What would be the best way using VBA? Do you increase the efficiency of the code by adding brackets etc, as in PICK Basic? Any other general efficiency tips would be appreciated as I've been asked to update some complex code that was written a long time ago by one of my ex-colleagues and is deemed inefficient, but I'm not expert when it comes to VBA, as you probably noticed! Thanks! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
What is more efficient | Excel Discussion (Misc queries) | |||
more efficient VBA? | Excel Programming | |||
Is there a more efficient way to do this? | Excel Programming | |||
More efficient way? | Excel Programming | |||
Which is more efficient? | Excel Programming |