LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,670
Default If Then else

HELP!! I am trying to figure out an if then else statement. I have it
working for two conditions but I need to make it for 3 conditions.

Cell: sheet "A" C1=1


sub if_then_else

If C1=1 then macro "A"

sheets("A").select

If C1=2 then macro "B"

sheets("B").select

else "C"

sheets("C").select

end if
end sub

I know the above isn't correct but I am trying to give you an idea of what I
need,
I am trying to make this work in VBA. (Macro "A", "B", "C", are all in the
formula I just didn't type the whole thing out.

If any one can Help I would appreciate it. Thanks

Eric
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:03 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"