Hi, When I run this I get a #NAME in I2. I would like to know what I'm doing wrong... Thanks!
BTW I there an easer way to do this?
BTW I there an easer way to do this?
Code:
Sub SumOfColumn()
'
'
'
Dim WithDraw As String 'named cell is WithDraw_2018
WithDraw = "WithDraw_2018"
Sheets("sheet2").Select
Range("I2").Select
ActiveCell.FormulaR1C1 = "=+SUM(R[1]C:WithDraw)"
Selection.NumberFormat = "$#,##0_);[Red]($#,##0)"
'
End Sub