+ Reply to Thread
Results 1 to 7 of 7

Ignore MsgBox in a referenced Workbook

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Here
    MS-Off Ver
    Excel 2010
    Posts
    119

    Ignore MsgBox in a referenced Workbook

    Hello,

    I have workbooks A, B, C.

    Via the 'Sub Workbook_Open()' in workbook A, workbook B is opened as read only and it is checks for any new rows of orders. If new orders are found, a message box pops up to inform the user.

    Via the 'Sub Workbook_Open()' in workbook C, workbook A is opened as read only to search for new cell data and synchronize corresponding data in workbook C. During this process, the message box pops up once again when workbook A is opened.

    Is there a way to ignore or bypass the message box of workbook A when workbook C is being opened?

    I have tried Application.DisplayAlerts = False but that does not work.

    Cheers,

    TV

  2. #2
    Forum Contributor
    Join Date
    09-24-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Ignore MsgBox in a referenced Workbook

    Can you upload a sample workbook with the code ... make sure all sensitive data is removed.

  3. #3
    Forum Contributor gsnidow's Avatar
    Join Date
    07-22-2010
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    150

    Re: Ignore MsgBox in a referenced Workbook

    tv69, if it is a message box, you could easily turn it off. However, without seeing the code, it's kind of hard to give you advice. Could you post the code?

    Greg
    Just a guy trying to make work stuff easier.

  4. #4
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Here
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Ignore MsgBox in a referenced Workbook

    Thanks for the interest guys and sorry for the delay in getting the docs uploaded here.

    Here are the 3 docs, docA, docB, docC

    Opening docA checks docB and pops up a message box.

    Opening docC and pressing the macro button, causes docA to be opened to attempt to get some dates synchronized. As when docA is opened on it's own, the message box appears and halts the macro from completing.

    It would be ideal to keep the message box but to bypass it when running the macro in docC.

    Thanks for any help.

    TV
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    09-24-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Ignore MsgBox in a referenced Workbook

    Try this .. this code is from workbook C..
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Here
    MS-Off Ver
    Excel 2010
    Posts
    119

    Re: Ignore MsgBox in a referenced Workbook

    Eureka moonsaga!!

    That works perfectly. Thanks very much. I just looked up more info and understand its use. Always learning...

    Thanks again.

    TV

  7. #7
    Forum Contributor
    Join Date
    09-24-2013
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2007
    Posts
    128

    Re: Ignore MsgBox in a referenced Workbook

    Your welcome.. Happy to help..

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Autopopulate link from a referenced workbook.
    By Danteruskin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-14-2013, 08:06 AM
  2. [SOLVED] In VBA code if a workbook that i have referenced is not there - how do i continue
    By m.collins in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 08:24 AM
  3. [SOLVED] Formula Changes When I Close Referenced Workbook
    By timbo1957 in forum Excel General
    Replies: 1
    Last Post: 05-16-2012, 06:46 AM
  4. how to ignore referenced sheets if they do not exist
    By ggremel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-15-2011, 06:05 PM
  5. Closing a referenced workbook
    By Frederick Chow in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-03-2006, 12:30 PM

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