I have the following code courtesy of Michael M. Is there away I could put a variable at the top of the code to change the year(withdraw_2018) to be, withdraw_2019, withdraw_2020etc. as the years change rather than hunting through the code looking for the year?
I tried;
and then used X inthe following code in place of withdraw_2018, but it failed.
I tried;
Rich (BB code):
Dim X as string
X = withdraw_2018
Rich (BB code):
WithDraw = Range("withDraw_2018").Address(0, 0)
With Sheets("Fisher").Range("I2")
.Formula ="=SUM(I3:" & WithDraw & ")"
.NumberFormat ="$#,##0_);[Red]($#,##0)"
End With