+ Reply to Thread
Results 1 to 4 of 4

Web scraping

  1. #1
    Registered User
    Join Date
    08-30-2024
    Location
    Dallas, Texas
    MS-Off Ver
    2010
    Posts
    9

    Web scraping

    Hi - I am trying to understand how to interact with the web from VBA Macro. The code below will sometimes simulate inputting "atn x-sight 5" into Google Search and clicking the Google Search button. However, most of the time it does not work. If I step through the code and place the cursor after "atn x-sight 5" in the search box before executing the line "Element.click", it works every time. Please help.

    Please Login or Register  to view this content.
    Last edited by PhillipC; 09-16-2024 at 04:05 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,744

    Re: Web scraping

    Administrative Note:

    We would very much like to help you with your query, however your post does not comply with our guidelines

    Please take a moment to review how to add code tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Guideline #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here.

    I have added the code tags for you today. Please take a few minutes to re-read our guidelines and rules that you agreed to when you joined and comply in the future.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    08-30-2024
    Location
    Dallas, Texas
    MS-Off Ver
    2010
    Posts
    9

    Re: Web scraping

    Thank you for your guidance. I will be sure to add code tags in the future. Thanks again.

  4. #4
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    3,046

    Re: Web scraping

    You might want to explore Selenium webdriver

    It allows you to automate modern browsers such as Chrome.
    You need to download and install the Selenium library and make sure you have a Chrome Driver associated with your version of Chrome.
    https://www.simplilearn.com/tutorial...er-in-selenium

    https://developer.chrome.com/docs/ch...iver/downloads
    Last edited by ByteMarks; 09-17-2024 at 09:28 AM.

+ 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. Web Scraping using VBA
    By perpectuals in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2018, 03:08 PM
  2. help from web scraping
    By kirby21 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-31-2015, 08:59 PM
  3. Web Scraping with VBA
    By Branbran10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2015, 09:30 AM
  4. help web scraping vba
    By kirby21 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-24-2015, 09:34 PM
  5. Web scraping
    By vijay.jp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2015, 08:07 AM
  6. Web scraping
    By vijay.jp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-02-2015, 12:56 AM
  7. Web Scraping
    By Thomo88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2014, 07:21 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