redspanna
Well-known Member
- Joined
- Jul 27, 2005
- Messages
- 1,604
- Office Version
- 365
- Platform
- Windows
Hi all
Is there some VB code that will take a date from cell A1 and then check the dates stored through range E3:J7 and highlight the next date for each row...
so In this example below if today is 14FEB then G3 F4 F5 G6 and G7 will all be highlighted as they are next date from the date in A1, ie 14FEB
Hope that makes sense and many thanks in advance
Is there some VB code that will take a date from cell A1 and then check the dates stored through range E3:J7 and highlight the next date for each row...
so In this example below if today is 14FEB then G3 F4 F5 G6 and G7 will all be highlighted as they are next date from the date in A1, ie 14FEB
CreditCards.xlsm | ||||||||
---|---|---|---|---|---|---|---|---|
E | F | G | H | I | J | |||
3 | 30 Jan | 13 Feb | 27 Feb | 13 Mar | 27 Mar | 10 Apr | ||
4 | 27 Jan | 24 Feb | 24 Mar | 21 Apr | 19 May | 16 Jun | ||
5 | 24 Jan | 24 Feb | 24 Mar | 24 Apr | 24 May | 24 Jun | ||
6 | 04 Jan | 01 Feb | 01 Mar | 29 Mar | 26 Apr | 24 May | ||
7 | 04 Jan | 01 Feb | 01 Mar | 29 Mar | 26 Apr | 24 May | ||
Sheet2 |
Hope that makes sense and many thanks in advance