using excel vba i need to scrape the date (2019-01-16). this code works great:
Set wyjatek = ie.Document.getElementsByClassName("redesignTravelHistory tank-thlist__date 2019-01-16")(0)
but the problem is, that in every html I try to scrape, this date can be different. Do you know how to solve it?
part of html:
<div class="redesignTravelHistory tank-thlist__date 2019-01-16">16/01/2019</div>
getElementsByTagName("div")to get a collection of all divs. 2. Loop throught that collection and useclassNameproperty to read the class name. 3. Use string functions orLIKEto match a pattern in the class name.