Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 318
Default message box appears and appears

Hello
I created a form for the sales force to use.
When cell D13 is selected a message box appears with some information
I added a command button and added the Sub
Mail_Selection_Range_Outlook_Body() from Ron De Bruins site.
when ever I submit the form the message box appears. If a select ok then
the email is created then everything is fine.
I do not want the message box to appear again when I am sending the email.
How do I fix that?
thanks in advance

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default message box appears and appears

At the beginning of your mail sub, add this line:
Application.EnableEvents = False

and at the end of the sub:
Application.EnableEvents = True

I'm assuming you have the message box displayed based on an event macro, so
this will prevent the event from being triggered.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Wanna Learn" wrote:

Hello
I created a form for the sales force to use.
When cell D13 is selected a message box appears with some information
I added a command button and added the Sub
Mail_Selection_Range_Outlook_Body() from Ron De Bruins site.
when ever I submit the form the message box appears. If a select ok then
the email is created then everything is fine.
I do not want the message box to appear again when I am sending the email.
How do I fix that?
thanks in advance

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
Error message #N/A appears in linked cells Jake Links and Linking in Excel 6 July 19th 08 09:54 PM
How do I keep the ding sound from playing when a message appears? Quinn1984 Excel Discussion (Misc queries) 2 September 12th 07 01:04 PM
How do I control where the input message appears? Bernina27 Excel Discussion (Misc queries) 2 September 16th 05 03:04 AM
Urgent- Help ! (Message 'Calculate' Appears) Steve C. Excel Discussion (Misc queries) 2 August 17th 05 01:58 AM
How do i change the location where the input message appears Kegs Excel Discussion (Misc queries) 1 February 9th 05 11:04 PM


All times are GMT +1. The time now is 07:53 AM.

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

About Us

"It's about Microsoft Excel"