Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 516
Default Suppressing a message box

I have a sub that monitors changes to the spreadsheet and when a value in a
cell in the range A1:A10 is deleted a default value is entered. A message
box then appears informing the user of the default value.
If a user right-clicks in that range, a menu appears to add/delete. If the
user chooses add, an input box appears for them to add a name (or names
separated by commas). This launches a procedure that inserts a new row and
then places the name entered as the value for the cell. This repeats for all
names entered in the input box.
When the row is added, the first sub kicks in and enters the default value
then displays the message box. When the user clicks ok, the new value is
then entered. Is there a way to bypass or suppress the message box?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Suppressing a message box

application.EnableEvents = False
' code that adds rows and so forth
Application.EnableEvents = True

--
Regards,
Tom Ogilvy


"Matt" wrote in message
...
I have a sub that monitors changes to the spreadsheet and when a value in

a
cell in the range A1:A10 is deleted a default value is entered. A message
box then appears informing the user of the default value.
If a user right-clicks in that range, a menu appears to add/delete. If

the
user chooses add, an input box appears for them to add a name (or names
separated by commas). This launches a procedure that inserts a new row

and
then places the name entered as the value for the cell. This repeats for

all
names entered in the input box.
When the row is added, the first sub kicks in and enters the default value
then displays the message box. When the user clicks ok, the new value is
then entered. Is there a way to bypass or suppress the message box?




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
Suppressing an excel message Sadia[_2_] Excel Programming 2 February 25th 05 07:01 PM
Suppressing events rci Excel Programming 3 February 10th 05 07:10 PM
suppressing error message Frank Kabel Excel Programming 1 May 28th 04 05:01 PM
suppressing error message JulieD Excel Programming 0 May 28th 04 03:02 PM
Suppressing links message Mark Excel Programming 2 February 2nd 04 02:09 PM


All times are GMT +1. The time now is 12:06 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"