Hi Tom,
For some reason, in interpreting the post, I mentally transformed
..Offset(1, 0).Resize(.Rows.Count - 1, 1) _
.SpecialCells (xlCellTypeVisible)
into
..SpecialCells (xlCellTypeVisible).Offset(1, 0) _
.Resize(.Rows.Count - 1, 1)
and proceeded with that as the starting point.
Duh!
--
Regards,
Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions
In article ,
says...
There are a few subtle problems with your code.
* Rows.Count returns a count of only the rows in the first area of a
non-contiguous range.
but if .Rows.count is qualified by
With Sheets("Initial Test Store Data").AutoFilter.Range
as it appears to be in (for example)
Set Sum_Order_Amt = .Offset(1, 0).Resize(.Rows.Count - 1, 1) _
.SpecialCells (xlCellTypeVisible)
Then it should be a contiguous single area and appropriately used here to
exclude the header from the rest of the range.