Worksheetfunction Object Vba Excel. Microsoft Excel for the Macintosh uses a different date system as its default. VBA makes Excel's worksheet functions available through the WorksheetFunction object, which is contained in the Application object.
You've already met one worksheet function - Pi. When you use the term WorksheetFunction. Here we learned how to use Worksheet Functions like Sum and VLookup in Excel along with some simple to advanced examples.
Lets have a variable called SalesTotal which will save the sum in it.
You should also be prepared to receive and handle a vba error in case the Match instruction doesn't find a match.
The SUM function returns the total value of the numbers in a list or cell range. WorksheetFunction. object to call one of the built-in Excel worksheet functions. When you use the term WorksheetFunction.