Vba Excel Code Worksheetfunction In Vba. A function may have the same name as a Microsoft Excel function and yet work differently. Use the WorksheetFunction property of the Application object to return the WorksheetFunction object.
Visual Basic functions do not use the WorksheetFunction qualifier. The difference between using or omitting the WorksheetFunctions reference is how errors are handled. You do it using the Activate property of Worksheets.
I am of the very strong opinion that this is a MUST when.
Difference between Worksheets and Sheets in VBA.
Because VBA is used by many applications beyond Excel, the Excel worksheet functions are not part of the VBA language itself. Let's say you are working with multiple worksheets, and for you, it's hard to navigate to a sheet using tab. Line of code: This a VBA instruction.