The Anchorage
Personal website of Gregory K. Maxey, Commander USN (Retired)
The information, illustrations and code contained in my "Microsoft Word Tips" are provided free and without risk or obligation.
However, the work is mine. If you use it for commercial purposes or benefit from my efforts through income earned or time saved then a donation, however small, will help to ensure the continued availability of this resource.
If you would like to donate, please use the appropriate donate button to access PayPal. Thank you!
The purpose of this Microsoft Word Tips & Microsoft Word Help page is to explain and provide examples of when to use parentheses in code statements and calls.
Note: I don't think I have ever used the Call keyword. You probably shouldn't either. Other than having to remember one rule instead of two, it makes no difference.
Sub Demo() MsgBox "Fine as is. No parentheses required", vbOKOnly, "LOOK MOM NO PARENS" If MsgBox("Do you see how parentheses is required here?", _ vbQuestion + vbYesNo, "PARENS REQUIRED") = vbYes Then MsgBox "There you go!" Else Beep MsgBox "Try again." End If End Sub
See: Installing Macros for instructions on how to set up and use the macros provided in this Microsoft Word Help & Microsoft Word Tips page.
That's it! I hope you have found this tips page useful and informative.
The information, illustrations and code contained in my "Microsoft Word Tips" are provided free and without risk or obligation.
However, the work is mine. If you use it for commercial purposes or benefit from my efforts through income earned or time saved then a donation, however small, will help to ensure the continued availability of this resource.
If you would like to donate, please use the appropriate donate button to access PayPal. Thank you!