+ Reply to Thread
Results 1 to 5 of 5

Waiting for an external website's process to finish

  1. #1
    Registered User
    Join Date
    03-31-2017
    Location
    BCF
    MS-Off Ver
    2010
    Posts
    2

    Waiting for an external website's process to finish

    Hi,
    I'm relatively new to VBA Excel and was wondering how to wait for an external website's processing to finish before moving on to the next line of code in my macro.
    I've done some googling but didn't quite find anything useful to my particular situation.

    My macro navigates to a website and on that website is a "Process" button. I programmatically click this button but I don't want my next line of code to execute until the website's processing (it inserts a bunch of rows into a database table) is actually done.

    One of the things I DO NOT want to do is 'sleep' X number of seconds. That's a no-go because the data insertion can take a varying amount of time.

    Below is the relevant code snippet. Any help/ideas would be greatly appreciated.

    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Waiting for an external website's process to finish

    Please Login or Register  to view this content.
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Registered User
    Join Date
    03-31-2017
    Location
    BCF
    MS-Off Ver
    2010
    Posts
    2

    Re: Waiting for an external website's process to finish

    Thanks for the very quick reply!
    Unfortunately, I tested this and it still did not work.

    Here is the code I used:
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Waiting for an external website's process to finish

    It's difficult to say without seeing the site, but one approach would be to loop until an element is present only when the processing has finished

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Waiting for an external website's process to finish

    Hi s- is the element name spelled correctly?
    Please Login or Register  to view this content.

+ 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. vba to wait untill , "In Progress" website message to finish/disappear
    By raj soni in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-01-2015, 06:36 PM
  2. [SOLVED] Copy paste data from external website
    By swade730 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-22-2014, 04:12 PM
  3. Help needed: Macro to query an ID in external website
    By Elangovan89 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2014, 08:26 AM
  4. Trouble Grabbing Data from a Secure External Website
    By thackwell in forum Excel General
    Replies: 1
    Last Post: 07-04-2012, 09:28 AM
  5. importing external data from a website
    By ppg in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2009, 09:46 AM
  6. How can I link from an external website to a particular worksheet
    By Zircom in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-05-2006, 11:35 AM

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