I have the following code within a fairly lengthy (I think) module.
As opposed to typing out 'IF mmmYY.AutoFilter.Range.Columns(1).SpecialCells(xlCellTypeVisible).count' for each IF statement, I have created a range variable called rC but I am getting a Runtime error 91 and I'm not sure why?
I'm guessing it may have something to do with the fact the mmmYY worksheet variable hasn't been set before rC has been set however the code doesn't run unless I set the mmmYY variable within the loop and it also doesn't run if I set the rC within the loop either.
Thanks in advance.Please Login or Register to view this content.
Bookmarks