Incorrect value when counting cells in different versions of Excel
I have seen some SO users run into an issue when trying to use some variation of Cells.Count ; the VBA code throws an overflow error in some cases. For reference, see comments on this answer : I think this will work, but I get an "overflow" error and it points me to the code "If Master.Cells.SpecialCells(xlCellTypeVisible).Count > 0 Then" --- it seems like it's not filtering for anything in particular – user1556069 and this answer : Is this onyl working (and Cells.Count didnt work) because the latter used an integer, 16 bits, max value of 65,536 and the whole spreadsheet returned a numbr