+ Reply to Thread
Results 1 to 6 of 6

Check if macro is running or it is frozen

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Check if macro is running or it is frozen

    Hi Guys,

    i am scraping web using IE object and i have about 2000 thousends urls to check.
    This is very slow.

    How can i check if macro is still working or it has been frozen?
    Do you have your methods?

    Like adding timestamp to cell ?

    Best,
    Jacek

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Check if macro is running or it is frozen

    In such cases I often use something like:
    Please Login or Register  to view this content.
    to display which site is currentlu tested/scrapped/etc.

    It is displayed not in a cell but in a status bar (at the bottom of the worksheet below sheets tabs
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Check if macro is running or it is frozen

    thank you very much!!!

    How about perfomance?

    Jacek

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Check if macro is running or it is frozen

    I read a lot about status bar - on my case will work but people often say that it is lowering performance and using do events instead of it.

    Do you know how to do this in do events?

    Jacek

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Check if macro is running or it is frozen

    You wrote about 2000 sites.
    The concept could be not writing to StatusBar after every site, so something like:

    Please Login or Register  to view this content.
    The overhead shall not be very large if your scrapping takes long time. And it probably takes time - otherwise you wouldn't ask about

    Do Events could be added somewhere to make easier manual breaking of the code execution

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Check if macro is running or it is frozen

    Thank you very much!

    Jacek

+ 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. Replies: 2
    Last Post: 03-16-2017, 06:49 AM
  2. Check Cell value before running macro
    By jonathann3891 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-02-2015, 11:54 AM
  3. [SOLVED] Check Column A for date before running macro
    By Nu2Java in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-08-2014, 07:48 PM
  4. Need to over ride compatiblity check message when running a macro
    By sakthisan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-21-2014, 05:51 PM
  5. Check if a chart exists on the sheet before running macro.
    By abhay_547 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-03-2010, 04:01 PM
  6. VBA Code to check cell before running macro
    By kolovel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-17-2010, 06:19 PM
  7. How to check a cell for content before running macro.
    By Incoherent in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2005, 12:05 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