+ Reply to Thread
Results 1 to 2 of 2

Suppressing a message box

  1. #1
    Matt
    Guest

    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. #2
    Tom Ogilvy
    Guest

    Re: Suppressing a message box

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

    --
    Regards,
    Tom Ogilvy


    "Matt" <[email protected]> wrote in message
    news:[email protected]...
    > 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1