+ Reply to Thread
Results 1 to 2 of 2

Excel freeze when external data connection url don't exist anymore

  1. #1
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Excel freeze when external data connection url don't exist anymore

    Hello
    I made a workbook with several connections to different url's that I use a button and a macro to refresh. There are no tables in the website so it just downloads all text.
    However, if the links suddenly don't exist anymore Excel will just freeze and the "waiting pointer" comes on, preventing me from doing anything in Excel. It doesn't time out so when I realized nothing happened I had to shut down Excel with the task manager. Is there a way to add some time out error handling or something like that in VBA?
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Excel freeze when external data connection url don't exist anymore

    set a flag before running your macro

    Use on time function to clear your flag after a set time

    In your macro check the state of the flag regularly

    If it is clear then quit your macro.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ 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. Excel External Data Connection
    By morerockin in forum Excel General
    Replies: 1
    Last Post: 10-13-2015, 09:23 AM
  2. Excel External Connection Dropping Password from Connection String?
    By mar0isa in forum Access Tables & Databases
    Replies: 1
    Last Post: 03-06-2015, 10:35 AM
  3. [CLOSED - NOT SOLVED] Excel External Data Connection - Timeout?
    By Rudurk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-17-2014, 08:40 AM
  4. Excel 2010 - External data connection lost
    By Pettr in forum Excel General
    Replies: 0
    Last Post: 09-19-2013, 09:24 AM
  5. How to query an Excel file in an External Data Connection
    By greyscale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2013, 01:06 AM
  6. [SOLVED] How do linked worksheets exist with data on an external device
    By tazzer in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-05-2006, 04:45 AM
  7. [SOLVED] How do you get rid of a link that doesn't exist anymore?
    By esparzaone in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2005, 01:06 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