lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I have been under impression that to call any vba function (please see the list below), I need to use this syntax
application.FunctionName
but I just noticed that I can call these function without Application.
Is it safe to say I can call all the functions below without Application.FunctionName? Just the function name as above? and to call WorksheetFunction then I need to do
Application.Worksheetfunction.FunctionName
Thank you very much.
https://www.techonthenet.com/excel/formulas/index_vba.php
I have been under impression that to call any vba function (please see the list below), I need to use this syntax
application.FunctionName
but I just noticed that I can call these function without Application.
Code:
Sub myfunctions()
MsgBox Chr(66)
MsgBox Now()
MsgBox Int(55.12345)
End Sub
Is it safe to say I can call all the functions below without Application.FunctionName? Just the function name as above? and to call WorksheetFunction then I need to do
Application.Worksheetfunction.FunctionName
Thank you very much.
https://www.techonthenet.com/excel/formulas/index_vba.php