Forum Discussion
VBA To Highlight Rows
mtarler
Thanks, that seems to have at least get it highlighting just the table.
The are no breaks in the data, other than they are not consecutive.
Quick screen shot of the data:
Conditional formatting won't work as it is a new spreadsheet that is generated every week and has to be altered to produce a report.
- TattyJJApr 06, 2020Copper Contributor
mtarler
That is a good point, but to be honest i haven't a clue how to resolve it.- mtarlerApr 06, 2020Silver Contributor
TattyJJ in VBA editor there is an "Immediate Window" that I love to test and try things. If it isn't already up you can find it under the View tab or hit Ctrl-G.
In the window type something like: Print isdate(range("e20").value)
- TattyJJApr 06, 2020Copper Contributor
mtarler
This has got me quite stumped! So by changing TDateM = Date to TDateM = Date + 12 it still works fine until it gets to a different month. If it was some sort of confusion between date formats this should have caused it to trip up?
Print isdate(range("e20").value) comes back as True for all the cells i tried in column E