Right click on the sheet name at the bottom of excel and select view code
Paste this code in the macro module that opens and close it.
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
MyStr = Replace(Target.Address, "$", "")
If InStr(MyStr, ":") = 0 Then Exit Sub
MyAdd = Split(MyStr, ":")
Range(MyAdd(1)).Offset(1, 1).Value = Application.Sum(Range(Target.Address))
Cancel = True
End Sub
The macro will work if you right click on a multiple cell range.
Right click on a single cell to view the normal right click menu.
Bookmarks