Hi,
I m really new to excel macros and dont know the jargon, so please explain in a simple way.
I am trying to compile a macro in the middle of which i have assumed a variable "counter" where counter = value in I3 (which may be any whole number)
I think that i have properly done this step as:
dim counter as long
Range("I3").select
counter = activecell.value
Now i have three different steps to be performed on the basis of the value of counter
first code is to be executed only if value of counter is 0 or 1
second code is to be executed when value of counter is 2
third code is to be executed when value of counter is 3 and above
Kindly help
I m really new to excel macros and dont know the jargon, so please explain in a simple way.
I am trying to compile a macro in the middle of which i have assumed a variable "counter" where counter = value in I3 (which may be any whole number)
I think that i have properly done this step as:
dim counter as long
Range("I3").select
counter = activecell.value
Now i have three different steps to be performed on the basis of the value of counter
first code is to be executed only if value of counter is 0 or 1
second code is to be executed when value of counter is 2
third code is to be executed when value of counter is 3 and above
Kindly help