I can't deny I dont understand how the code you provided works, but i do get that it counts every row in the sheet and the entire row.
I want to be able to confine that to only work in a specific range. Say ("B2:GC56") for example.
And i wan't to be able to change that so I can set the range using other variables.
For example if the range is set up
and then goes through all the rows in the range using something akin to:
That would allow it to only count the rows that are relevant to me.
And if the range is set using cells like above then I can set the range using other variables eg:
I hope that helps you understand what I'm after.
I did try editing the
part of the code you provided but that seems to break the code and it doesn't do anything.
I'd also like to point out that I don't mind if the code operation is slow, but i do need it to run row by row with the beginning and end of the range being able to be subject to change.
Every row is an individual record that feeds a master records sheet, and I need this code to find instances of absences in a date range. And depending on the need only 1 specific row may need updating, or a a series of rows my need to be queried one after the other with new date ranges.
Bookmarks