+ Reply to Thread
Results 1 to 8 of 8

How can I bypass a pop-up

  1. #1
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    How can I bypass a pop-up

    Can anyone help with a problem I am experiencing -

    I have a master workbook that is linked to a number of slave workbooks. However, whenever you open one of the slave documents you get a pop-up message:

    "Unable to open://master filepath. The Internet site reports that the item you requested could not be found. (HTTP/1.0 404).

    Is there any way I can put in a piece of code to tell the workbook to ignore this pop-up upon opening as I don't really want the users of the slave workbooks to know there's a master one!!

    Thanks

    Steve

  2. #2
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: How can I bypass a pop-up

    hi Steve,

    maybe
    Please Login or Register  to view this content.
    hth
    Rob
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  3. #3
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: How can I bypass a pop-up

    Rob -

    Thanks for having a go at that one. Unfortunately it didn't work.

    Any other ideas?

    Thanks

    Steve

  4. #4
    Forum Expert Whizbang's Avatar
    Join Date
    08-05-2009
    Location
    Greenville, NH
    MS-Off Ver
    2010
    Posts
    1,395

    Re: How can I bypass a pop-up

    On Error Resume Next doesn't work?
    http://www.cpearson.com/excel/ErrorHandling.htm

    Also, just to double check, what do you mean by "Unfortunately it didn't work". I just want to double check that you used "application.display alerts = false" at the beginning of your code block, and "application.display alerts = true" at the end of the code block, not copied exactly as Rob supplied.
    Last edited by Whizbang; 11-16-2009 at 10:01 AM.

  5. #5
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: How can I bypass a pop-up

    Whizbang -

    Thanks for your post. My workbook actually comes up with two alerts;

    1. The aforementioned alert about not being able to open....
    2. An alert that states that one or more links cannot be updated...

    Rob's solution above seems to bypass the second alert but not the first.

    I've tried entering an 'On Error Resume Next' command based on the document you enclosed (thanks) but to no avail. Unless I'm entering it wrong, which is highly possible as VBA is very new to me!

    Cheers

    Steve

  6. #6
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: How can I bypass a pop-up

    Whizbang -

    Actually, my workbook comes up with two alerts:

    1. The abovementioned alert about being unable to open...
    2. An alert stating that one or more links cannot be updated...

    Robs solution above seems to disable the second alert but not the first.

    I've tried entering a 'On Error Resume Next' command based on your enclosed document (thanks) but to no avail. Unless of course I'm entering it wrong, which is highly possible as I'm quite new to VBA!

    Cheers

    Steve

  7. #7
    Forum Contributor
    Join Date
    08-17-2009
    Location
    West Midlands
    MS-Off Ver
    Excel 2016
    Posts
    213

    Re: How can I bypass a pop-up

    Ok - I think I see the problem.

    As there is no other VBA code within this workbook it's pointless using application.displayalerts = False
    application.displayalerts = True
    as there's no code in the middle, so it just turns the alerts off and then straight back on again!

    I don't really want to keep the alerts turned 'off'.

    Suggestions?

  8. #8
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: How can I bypass a pop-up

    hi,
    In Excel 2007 you may be able to use Tools - Options (ie [alt + T + O]) - Advanced - "When calculating this workbook" - untick "update links to other documents" & tick "save external link values".
    I think this setting is stored within the active workbook & not at an application level but you should check... also, with these settings you (or someone) would have to force an update of the links (edit: in the slave files) at any time a change is made in the Master file.

    hth
    Rob

+ 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