+ Reply to Thread
Results 1 to 3 of 3

Use excel VBA to access website - error 424 on getElementsbyID

  1. #1
    Registered User
    Join Date
    10-13-2012
    Location
    Cali
    MS-Off Ver
    Excel 2003
    Posts
    22

    Use excel VBA to access website - error 424 on getElementsbyID

    Hello,

    I am trying to understand how to use vba/excel to interact with websites. I have the attached code that I believe should work but I am receiving an error 424 Object Required on the getelementsbyID part. What am I missing? It is erroring on the bold part.

    Thanks

    Please Login or Register  to view this content.

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

    Re: Use excel VBA to access website - error 424 on getElementsbyID

    That's because there isn't an element with and id of "st" in the page (or "sb" for that matter)

  3. #3
    Registered User
    Join Date
    10-13-2012
    Location
    Cali
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: Use excel VBA to access website - error 424 on getElementsbyID

    Thanks, it looks like "st" was the name and not the ID - the ID is actually "gh-search-input" - I was able to have the search field populated but now I cannot get it to click the button. This is what I see from the HTML of the button, I didn't see an ID?

    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. Replies: 0
    Last Post: 06-16-2015, 07:51 AM
  2. Error - Auto import Selected Value From WebSite into Excel
    By dps700 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2014, 02:17 AM
  3. Ability to select multiple .values under .getelementsbyid
    By Al_O_L in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-26-2014, 05:19 PM
  4. Unable to Access Excel Forum Website Intermittently
    By smuzoen in forum The Water Cooler
    Replies: 19
    Last Post: 03-01-2013, 11:48 AM
  5. how to loop in general and then apply .getelementsbyID
    By jayinthe813 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2012, 08:45 PM
  6. Error while downloading Excel workbook from website
    By BBorawski in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-17-2009, 01:56 PM
  7. Error while opening Excel file from website
    By BBorawski in forum Excel General
    Replies: 0
    Last Post: 09-17-2009, 01:53 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