Run a loop if else

kwik98

Board Regular
Joined
Sep 25, 2009
Messages
55
I have a workbook with several macros, one of which starts and runs them all. I need a way to check that if when the macro to run them all is ran that if CellI1 in Worksheet1 is today's date, it will proceed to run, if not it does nothing. BUT! I need this all to loop ( run all of the macros) through all of the macros until the date in Sheet1 I1 does NOT equal today's date. As the macros run, they do their thing and delete the first row and bring up the next current date row . I need the "run them all" macro to loop until the date in this cell isn't the current date.
By the way, the macros sort them in order of date so as to always have the newest date on top.
 
Last edited:

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Something like this?

Code:
Do While Sheets("Sheet1").Range("I1").Value = [COLOR=#333333][FONT='inherit']Date()[/FONT][/COLOR]
 
Upvote 0

Forum statistics

Threads
1,214,559
Messages
6,120,203
Members
448,951
Latest member
jennlynn

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top