Hi, I'm trying to get the total of the last 4 values in Column "I".
I then want to enter the sum value into a New Note in the same last cell, using a specific text string.
I can already find the row and select the cells I need, but the value keeps coming back as "0".
Any help appreciated
I then want to enter the sum value into a New Note in the same last cell, using a specific text string.
I can already find the row and select the cells I need, but the value keeps coming back as "0".
Code:
Dim MySum As Long
Dim rng As Range
Cells(Rows.Count, "I").End(xlUp).Offset(-3, 0).Select
Selection.Resize(Selection.Rows.Count + 3).Select
Set rng = Selection
MySum = WorksheetFunction.Sum(Range(rng.Address))
MsgBox MySum
Cells(Rows.Count, "I").End(xlUp).Select
Selection.AddComment 'Insert Charges & Fees Comment
Selection.Comment.Visible = False
Selection.Comment.Text Text:="Total Annual Charges" & Chr(10) & "& Fees = " & "£" & MySum & " pa."
ActiveCell.Comment.Shape.TextFrame.AutoSize = True
Any help appreciated