MZ tools Msgbox uses "Call"?

  • Thread starter Thread starter salgud
  • Start date Start date
S

salgud

I'm new to MZTools, figuring out how and when to use it. Found some very
useful features - the "find" is great!

Have used the Msgbox help a couple of times, just to try it out. I'm
curious as to why it inserts a "Call" in front of Msgbox, like this:

Call MsgBox("There is no password listed for this sheet!", vbExclamation,
"Missing Password")

I've never used a "call" with a Msgbox, and it always worked fine. But if I
delete it here, the code goes red. Why?

As always, thanks!
 
Call is unnecessary, but if you omit it, you need to remove the parens
around the arguments.

- Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top