I'm currently working on a vba code where I extract a graph, which is updated daily, from a website. I'll be running this code weekly to grab this graph.
Originally I extracted the graph into my Excel workbook by referencing the chart's element source code:
Sheets("Chart").Shapes.AddPicture "https://charts.website.com/c/422/charts/ClearChart_2054_980961381630.jpg" _
, msoFalse, msoTrue, 100, 100, 500, 600
My problem is that the _980961381630.jpg
changes daily.
I'm trying to understand how to use VBA to update _980961381630
so that when I run the code I get the most recent, updated, table.
Right now I'm trying to use Extracting Specific Elements VBA and Extracting Varying Element Source Code as a resource.
The HTML element source code is:
<img chart-id="2672" alt="Chart ID 2672" class="chart-img"
src="https://charts.website.com/c/422/charts/ClearChart_2054_758170607617.jpg"
diagnostic-id="chart-img-2" style="max-height: 150px;">