+ Reply to Thread
Results 1 to 4 of 4

Method not supported error

  1. #1
    Forum Contributor
    Join Date
    01-06-2019
    Location
    Australia
    MS-Off Ver
    2019
    Posts
    209

    Method not supported error

    Please Login or Register  to view this content.
    I have a problem with Sdd = Trim(DOC.getElementsByTagName("balls").innerText) not working says method not supported

    Any ideas will be greatly appreciated

    Thank you for your time

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Method not supported error

    GetElementsByTagName return a collection of elements. InnerText is a property of a individual element.
    So you first need to get the collection and then loop thru the collection to get to the individual elements.
    The code below gives you something like that. Notice that also a lot of CrLf's are returned. Replaced the by spaces.
    Elements are dumped to the active sheet. Change that to yr needs.
    Please Login or Register  to view this content.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Forum Contributor
    Join Date
    01-06-2019
    Location
    Australia
    MS-Off Ver
    2019
    Posts
    209

    Re: Method not supported error

    Hello thank you for your help, it seems to put the data all in 1 cell and the words supp are present.

    Is there anyway to match the date or draw no to my pre filled data I have the date starting in B5:B? and the draw no in C5:C?, then paste the data 1st no in D5 (Or whatever row that matches the date of draw) 2nd in E5 and so on i have the Headings in the previous row to row 5 so would not need the supp word that comes from the website.

    Thank you for your help i find this very interesting.

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Method not supported error

    This piece of code extracts the results from the site and puts them into separate cells.
    Ofcourse it's very specific for this webpage.
    Just alter the cells the results go to your needs.
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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 Excel error - Run-time error '438': Object doesn't support this property or method
    By officialhoad in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2017, 09:42 AM
  2. Replies: 2
    Last Post: 08-30-2017, 10:07 AM
  3. Error Message: Compile Error: Method or data Member not found
    By blei in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-23-2017, 08:47 AM
  4. Runtime error '1004': Paste special method of range class error.
    By Daryl Zer0 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-05-2014, 01:44 AM
  5. Replies: 1
    Last Post: 05-23-2014, 05:44 AM
  6. [SOLVED] VBA Error: Runtime Error 1004: AutoFilter method of Range class failed
    By jl22stac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-03-2013, 07:27 PM
  7. [SOLVED] Automation Object 's method not be supported?
    By cok in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-12-2006, 01:30 AM

Tags for this Thread

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