+ Reply to Thread
Results 1 to 3 of 3

Loop through all HTML Elements in HTLMDocument that contain a certain field

  1. #1
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Loop through all HTML Elements in HTLMDocument that contain a certain field

    Hi all,

    apologies for the somewhat unclear title - I didn't know how to put it better.
    I pull a webpage, put that into a HTMLDocument and then want to loop through all elements that have "data-field" in them.
    This can be elements with an ID, but usually they have an "A" or "SPAN" or "F" tag.

    I understand that I can loop through all tags, but is there a way to say something like:

    Please Login or Register  to view this content.
    Thanks for any guidance.

  2. #2
    Forum Contributor kalbasiatka's Avatar
    Join Date
    02-27-2016
    Location
    Brest, Belarus
    MS-Off Ver
    2021
    Posts
    224

    Re: Loop through all HTML Elements in HTLMDocument that contain a certain field

    Please Login or Register  to view this content.
    To do it for me and help me it is 2 different things!
    Sorry for my english, blame Google translator

  3. #3
    Forum Contributor
    Join Date
    03-30-2017
    Location
    The Netherlands
    MS-Off Ver
    2016
    Posts
    141

    Re: Loop through all HTML Elements in HTLMDocument that contain a certain field

    When you find a working solution could you let me know on my tread ( https://www.excelforum.com/excel-pro...-to-excel.html ) i've got the same problem.

+ 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. [SOLVED] Extract 2 elements from HTML table (code + site provided)
    By efarkouh in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-22-2016, 11:04 AM
  2. Elements from a html file into excel cells
    By Bungkai in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2016, 04:18 PM
  3. How to extract HTML elements?
    By babyboy808 in forum Excel General
    Replies: 1
    Last Post: 07-22-2014, 04:24 AM
  4. [SOLVED] Run-time error '91' - Object variable or With block not set // getting HTML elements of we
    By Bootwalker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-02-2014, 11:33 AM
  5. Resources for Using VBA to Manipulate Silverlight Elements like HTML Elements
    By linear_db in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-16-2013, 04:43 PM
  6. To split a string which are html pulled elements
    By gochel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-18-2013, 08:00 AM
  7. Replies: 1
    Last Post: 05-24-2005, 10:06 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