Hi,
Basic problem:
I want to loop through every minute of a date/time range as fast as possible.
For example,
Start Date: 7/9/15 8:00 PM
End Date: 7/10/15 8:00 AM
The code should go through 8:01 PM, 8:02 PM, 8:03 PM, etc. until the end date/time.
Here's the context:
I have a spreadsheet that pulls in values based on an entered date and time.
Two cells perform calculations on those values and give that date/time an assigned number, either a 0 or 2.
I want the macro to go through every minute in a date range and when the assigned numbers of the two cells do not match, to copy and paste the date in either column 1 or column 2.
Here is the code I have:
This works, but it iterates slowly, I can watch the minute increase when ideally I'd like it to be close to instantaneous.
I tried looking into For...Next loops but didn't make much progress.
Any help would be greatly appreciated!
Thanks![]()
Please Login or Register to view this content.
Bookmarks