supressing the message box

  • Thread starter Thread starter Anu
  • Start date Start date
A

Anu

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
 
Is there a way of setting a variable to handle this? (Perhaps in
worksheet cell) eg:-

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

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