So I tried the simple changing of "container#" to "table-responsive#"
Dim Headers As Object: Set Headers = HTMLDoc.getElementsByTagName("h3") 'This object is a massive thing again with loads in, but this time it would appear to be the things "tagged" with <h2> </h2> which look like the headings of each table i am interested in except the last which Does not have table charachteristics.......
'(Part 3 b)) Some variable for our final Table, refreshed each time in a loop for each Table
Dim oTable As Object 'Again a "table" object is used in the looping.. but..##..
Dim colCnt As Long, colCt As Long, rowCnt As Long ' Row and "HTML cell" (Column) variable count
Dim c As Long, r As Long 'Indicies for getting appropriate Row("Field??") / Column("Cell")
Dim n As Long 'Bound Loop Variable (Count) >> http://www.mrexcel.com/forum/excel-questions/803662-byte-backward-loop.html
For n = 0 To Headers.Length - 2 'The count range for a similar looping as in pike is obtained here from the "length" / number of headings(Pike had just object of tables)..'(Skip the last header since it is paragraph......... so 2 instead of 1 here.... indeed with 1 it will crash at last 8 as it d0es not have the table properties such as rows "cells" (columns) etc..)
If Headers(n).NextSibling.ID Like "table-responsive#" Then '..##...This object is made or refreshed each time in the loop, o it is made and deleted 7 times
Set oTable = Headers(n).NextSibling.ChildNodes(0).ChildNodes(0) 'Identical Table Object to Pikes, just obtained navigating through rather than going straight to it...??
_..................
But still same error at
If Headers(n).NextSibling.ID Like "table-responsive#" Then
_................................
I wonder if the key to me solving this problem is understansing in as simple but concise terms as possible exactly what the original code did here,
Dim Headers As Object: Set Headers = HTMLDoc.getElementsByTagName("h2") 'This object is a massive thing again with loads in, but this time it would appear to be the things "tagged" with <h2> </h2> which look like the headings of each table i am interested in except the last which Does not have table charachteristics.......
'(Part 3 b)) Some variable for our final Table, refreshed each time in a loop for each Table
Dim oTable As Object 'Again a "table" object is used in the looping.. but..##..
Dim colCnt As Long, colCt As Long, rowCnt As Long ' Row and "HTML cell" (Column) variable count
Dim c As Long, r As Long 'Indicies for getting appropriate Row("Field??") / Column("Cell")
Dim n As Long 'Bound Loop Variable (Count) >> http://www.mrexcel.com/forum/excel-questions/803662-byte-backward-loop.html
For n = 0 To Headers.Length - 2 'The count range for a similar looping as in pike is obtained here from the "length" / number of headings(Pike had just object of tables)..'(Skip the last header since it is paragraph......... so 2 instead of 1 here.... indeed with 1 it will crash at last 8 as it dies not have the table properties such as rows "cells" (columns) etc..)
If Headers(n).NextSibling.ID Like "container#" Then '..##...This object is made or refreshed each time in the loop, o it is made and deleted 7 times
Set oTable = Headers(n).NextSibling.ChildNodes(0).ChildNodes(0) 'Identical Table Object to Pikes, just obtained navigating through rather than going straight to it...??
In relation to this original source code like :
debinetOldSource.JPG
https://app.box.com/files/0/f/896989.../f_75254767798
_........
Maybe then I can understand how to modify the code to work with the following new source code like:
debinetNewSource.JPG
view-source:http://www.ernaehrung.de/lebensmitte...eischkaese.php
_.......
Still thinking
Bookmarks