Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Help with a loop VBA with an if statement

kixelsid,

Sorry for not getting back to you sooner.

Here is what you can do (using the code I provided as an example):



Sub MasterMacro() 'Or you can give it a more meaningful name than "MasterMacro"
IfThenElseLoop 'If you changed the name of it, use that instead of "IfThenElseLoop"
IfThenElseLoop2 'Or whatever name you gave them when you copied them.
IfThenElseLoop3
IfThenElseLoop4
End Sub



Hopefully that will work for you. Let me know.

Conan


"kixelsid" wrote in message
...

Conan,

1 more question if i may. Your script worked perfect all i had to do
was copy/paste & rename it several times for each cell. Now, my
question is since these are subs, can I make 1 macro that runs all the
macros at once?


--
kixelsid
------------------------------------------------------------------------
kixelsid's Profile: http://www.excelforum.com/member.php...o&userid=31901
View this thread: http://www.excelforum.com/showthread...hreadid=516301



Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
for loop with if statement Steve Excel Worksheet Functions 1 February 17th 10 07:56 PM
If statement - Loop? George Excel Discussion (Misc queries) 1 March 14th 06 07:06 AM
continue statement in a loop rozner Excel Programming 4 August 2nd 05 03:30 PM
Loop including IF statement yalex[_7_] Excel Programming 1 July 8th 04 03:07 PM
Do Until loop with if statement Sandy[_3_] Excel Programming 4 July 17th 03 11:06 AM


All times are GMT +1. The time now is 12:06 PM.

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"