Hi! Is there a way to use vba code to sum a selected range and then copy this value for use in pasting to a different part of a workbook? This is the code I tried:
Sub SumRangeCopy()
Set CurrSum = Application.WorksheetFunction.Sum(Selection)
CurrSum.Copy
End Sub
When I try that code I get the error message: "Compile Error: Object Required"
Any suggestions would be greatly appreciated!
Sub SumRangeCopy()
Set CurrSum = Application.WorksheetFunction.Sum(Selection)
CurrSum.Copy
End Sub
When I try that code I get the error message: "Compile Error: Object Required"
Any suggestions would be greatly appreciated!