kristiankoehn
New Member
- Joined
- Jun 14, 2012
- Messages
- 4
I am not familiar enough with VB, but need to program the following:
In the excel spreadsheet, I have a variable (AGE) wich is a number. Depending on the size of this variable, I want to make a VB-macro which executes different other macros depending on the value of AGE.
In excel (assuming that "Macro1" would execute a macro - which it will not, I know...!), I would state this like IF(AGE<6;"Macro1";IF(AGE>6;"Macro2";"")) and so forth.
How do I express this in VB? I guess it is pretty straightforward...?
In the excel spreadsheet, I have a variable (AGE) wich is a number. Depending on the size of this variable, I want to make a VB-macro which executes different other macros depending on the value of AGE.
In excel (assuming that "Macro1" would execute a macro - which it will not, I know...!), I would state this like IF(AGE<6;"Macro1";IF(AGE>6;"Macro2";"")) and so forth.
How do I express this in VB? I guess it is pretty straightforward...?