Re: If then several times
- From: Tushar Mehta <tmUnderscore200310@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 2 Sep 2005 12:03:05 -0400
What do you mean by "why won't...if statements run?" Do you mean they
are not evaluated? Or that the 'do whatever' part is not executed?
What is the value of the active cell? What does the first 'DO
whatever' actually contain?
--
Regards,
Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
In article <758A4227-C222-4E5D-8DFE-E1BAE38B3161@xxxxxxxxxxxxx>,
John@xxxxxxxxxxxxxxxxxxxxxxxxx says...
> I seem to be having a problem running a macro that uses several if then
> statements. Here is an example... why won't the second third, fourth if
> statements run?
>
> If Activecell.value = 1 then
> DO whatever
> end if
> If activecell.value =2 then
> do whatever
> end if
> Ifactivecell.value = 3 then
> do whatever
> end if
> end sub
>
.
- Follow-Ups:
- Re: If then several times
- From: John
- Re: If then several times
- References:
- If then several times
- From: John
- If then several times
- Prev by Date: Re: Merge simple macros to create Complex macro
- Next by Date: Re: What is the name of this function...
- Previous by thread: If then several times
- Next by thread: Re: If then several times
- Index(es):
Relevant Pages
|