I have a dataset that I\'m using a filter on. I simply want to calculate the total values in column N, that are visible. The data starts in row 2, and ends at row 2047.
Try setting your rng with the line below:
rng
Set rng = Range("N2:N" & Cells(Rows.Count, "N").End(xlUp).Row).SpecialCells(xlCellTypeVisible)
Later using your debug line Debug.Print rng.Address, I get the following range in the immediate window:
Debug.Print rng.Address
$N$901:$N$937