A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

supressing the message box



 
 
Thread Tools Display Modes
  #1  
Old June 16th, 2004, 06:45 AM
Anu
external usenet poster
 
Posts: n/a
Default supressing the message box

I have an excel macro which has some msgboxs with relevant messages
according to some business rules. I want to display these conditionaly
only when the function is invoked by clicking on a button. I dont want
these msgs to appear when the macro is run from a .vbs file. Is there
any way to accomplish this?
Pls let me know - ill be greatly benifited by it.
Thanks!
- Anu
  #2  
Old June 16th, 2004, 10:16 AM
BrianB
external usenet poster
 
Posts: n/a
Default supressing the message box

Is there a way of setting a variable to handle this? (Perhaps in a
worksheet cell) eg:-

'--------------------------------------------------------------
Dim ShowMessage As Boolean
ShowMessage = True
If ShowMessage = True Then Msgbox( ..........................
'--------------------------------------------------------------


---
Message posted from http://www.ExcelForum.com/

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.