+ Reply to Thread
Results 1 to 7 of 7

Use VBA to Automate Actions on Webpage (Open web page, Select Dropdown, click button)

  1. #1
    Registered User
    Join Date
    01-05-2008
    Posts
    51

    Use VBA to Automate Actions on Webpage (Open web page, Select Dropdown, click button)

    Hi Excel Gurus,

    This is an automation issue I am trying to solve and seek help from your expertise.

    I need my excel macro to do the following on Internet explorer (or chrome):
    1. Open URL - Link
    2. Select Dropdown - "M-Option on UK Natural Gas NBP Future"
    3. Click on Submit
    4. There will be 7 Download links that I need to download (All PDF's)

    I tried to find out the download links and hard-code the macro, which didn't work probably due to JAVA API (I am not sure about this).

    I am just hoping there will be someone who had experience with this sort of automation.

    Thanks in advance.

    Cheers,
    Ravi.

  2. #2
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Use VBA to Automate Actions on Webpage (Open web page, Select Dropdown, click button)

    Hi RAvi,

    Use below code:

    Please Login or Register  to view this content.

    Cheers!!

  3. #3
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Use VBA to Automate Actions on Webpage (Open web page, Select Dropdown, click button)

    Did this helped???

  4. #4
    Registered User
    Join Date
    01-05-2008
    Posts
    51

    Re: Use VBA to Automate Actions on Webpage (Open web page, Select Dropdown, click button)

    Hi Excelliot,

    Apologies for my late reply. I just checked I received help from you Thanks for your help.

    I did give this a try and it did work for the first part of navigating to the Reports (M-Option) downloads page. after which it gets stuck. (I think this might be because of a different version of IE). Will test again on my home PC.

    In the meantime, I have been busy trying the same alternative with Selenium Webdriver, which did work to download the files. Though, I am unable to navigate to the M-option reports page. So I am downloading the reports with "All Contracts" and extracting required M-Option out of it. This is a tiresome process as the download files are quite quite heavy (more than 5 MB).

    Please check the code and see if you can help me complete it. This needs Selenium Wrapper Type Library which can be downloaded at this location: Link
    Please Login or Register  to view this content.
    Thanks again for your help.

    Cheers,
    Ravi.

  5. #5
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Use VBA to Automate Actions on Webpage (Open web page, Select Dropdown, click button)

    Hi Ravi,

    Try code i gave, if you find difficulty then we can modify code, this could be majorly due to tab event in your IE, check for that & correct it..

    Cheers!!

  6. #6
    Registered User
    Join Date
    01-05-2008
    Posts
    51

    Re: Use VBA to Automate Actions on Webpage (Open web page, Select Dropdown, click button)

    Thanks Exelliot. I had some issues with the IE, due to the different versions available on user machines. Though the code is work on few machines. I did go with using the Selenium webdriver and proceed with the model.

    Thanks again for all your help. Your code did help me find more ideas to get to the final solution. I am marking this solved.

    Shall I post the final working code?

    cheers,
    Ravi.

  7. #7
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325
    yes..


    Cheers!!

+ 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. Multiple actions with single button click
    By waisanen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-28-2015, 10:30 PM
  2. Paste Data into Webpage and click Button
    By Gannon2145 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-13-2015, 07:33 AM
  3. VBA Macro Click on webpage button
    By ttbake in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-17-2014, 07:18 PM
  4. VBA to click on 'Continue' button on webpage
    By Jimbo77 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-20-2014, 06:49 PM
  5. click webpage button problem
    By ckjason in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-01-2013, 03:56 AM
  6. [SOLVED] VBA code to 'click' Open in the Open or Save dialogue box on a webpage?
    By bensox in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-31-2012, 05:40 AM
  7. Automate a button click event
    By JD in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2005, 08: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