Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 219
Default MZ tools Msgbox uses "Call"?

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!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default MZ tools Msgbox uses "Call"?

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

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"salgud" wrote in message
...
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!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 219
Default MZ tools Msgbox uses "Call"?

On Thu, 5 Mar 2009 08:36:40 -0500, Jon Peltier wrote:

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

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services, Inc.
http://PeltierTech.com/WordPress/
_______


"salgud" wrote in message
...
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!


Thanks, John.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Stop users from accessing "Protection" option from "Tools" menu I Believe Excel Programming 2 December 19th 05 02:44 PM
unable to load "Excel" analysis toolpak tried the tools and brows excel analysis toolpak Excel Discussion (Misc queries) 4 November 11th 05 05:01 AM
Call a sub statement in "Personal Macro Workbook" from "ThisWorkbo QC Coug Excel Programming 1 August 26th 05 07:09 PM
CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = Fals Arturo Excel Programming 3 May 26th 05 05:44 PM


All times are GMT +1. The time now is 12:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"