Worksheet Functions In Vba. VBA makes Excel's worksheet functions available through the WorksheetFunction object, which is contained in the Application object. WorksheetFunction in front of the If you use the WorksheetFunction method, VBA will throw a run time error.
Therefore, you could call the SumMinus Function procedure by typing the following into any cell of your worksheet When you use the term WorksheetFunction. But Excel is the undisputed king when it comes to useful functions.
Worksheet functions in VBA use the same arguments as the ones on the worksheet.
Now when working in excel we use functions they are called as worksheet functions and we can use similar functions in VBA.
Because VBA is used by many applications beyond Excel, the Excel worksheet functions are not part of the VBA language itself. I have always used worksheet functions in VBA with the following syntax Application. But Excel is the undisputed king when it comes to useful functions.