CookieMonster76
Board Regular
- Joined
- Apr 30, 2015
- Messages
- 200
Hi
In Cell G1 I have the date 31/3/17 (UK - i.e. 31st March 2017)
In Cells B8 to B20 I have a list of dates.
I need to loop through these cells and stop once I reach a date greater than that specified in G1.
I had an attempt, being the following, but it doesn't work:
Range("B8").Select
ActiveCell.Select
Do Until ActiveCell.Value > Range ("G1")
ActiveCell.Select
Loop
Thanks for any help
Paul
In Cell G1 I have the date 31/3/17 (UK - i.e. 31st March 2017)
In Cells B8 to B20 I have a list of dates.
I need to loop through these cells and stop once I reach a date greater than that specified in G1.
I had an attempt, being the following, but it doesn't work:
Range("B8").Select
ActiveCell.Select
Do Until ActiveCell.Value > Range ("G1")
ActiveCell.Select
Loop
Thanks for any help
Paul