Hi guys.
I have a data sheet which is attached here.
I get a new data sheet like this every day, and that is why i need it to autosum where the red arrows are pointing in the attached picture.
I've used filter so i only need it for the visible cells.
I have this macro;
..where i've tried substituting "xlConstants" with xlCellTypeVisible and deleting xlNumbers, but i can't seem to get it to work.
Any suggestions?
https://www.screencast.com/t/jwSSZNW1Us
Thanks
I have a data sheet which is attached here.
I get a new data sheet like this every day, and that is why i need it to autosum where the red arrows are pointing in the attached picture.
I've used filter so i only need it for the visible cells.
I have this macro;
Code:
Sub AutoSum()
Dim Area As Range, MyColumn As String
MyColumn = "A"
For Each Area In Columns(MyColumn).SpecialCells(xlConstants, xlNumbers).Areas
SumAddr = Area.Address(False, False)
Area.Offset(Area.Count, 0).Resize(1, 1).Formula = "=SUM(" & SumAddr & ")"
Next Area
End Sub
Any suggestions?
https://www.screencast.com/t/jwSSZNW1Us
Thanks
Last edited by a moderator: