Hi everyone ...
Trying to Sum a named Range in VBA and assign that to a variable.
Here is the line of code
iLastbalance = WorksheetFunction.Sum("LastBalance"
iLastBalance is an argument in a Function.
When the code runs I get an error box saying "RunTime Error 1004: Unable to get the Sum property of the WorkSheetFunction Class"
Any ideas?
Michael
Trying to Sum a named Range in VBA and assign that to a variable.
Here is the line of code
iLastbalance = WorksheetFunction.Sum("LastBalance"
iLastBalance is an argument in a Function.
When the code runs I get an error box saying "RunTime Error 1004: Unable to get the Sum property of the WorkSheetFunction Class"
Any ideas?
Michael