Anyone has any idea how can I use vba to scrape the previous closing rate of a list of currencies to excel?
[TABLE="width: 0"]
<tbody>[TR]
[TD]AUDUSD
[/TD]
[/TR]
[TR]
[TD]USDCAD
[/TD]
[/TR]
[TR]
[TD]USDCHF
[/TD]
[/TR]
[TR]
[TD]EURUSD
[/TD]
[/TR]
[TR]
[TD]GBPUSD
[/TD]
[/TR]
[TR]
[TD]USDJPY
[/TD]
[/TR]
[TR]
[TD]NZDUSD
[/TD]
[/TR]
[TR]
[TD]USDCNH
[/TD]
[/TR]
</tbody>[/TABLE]
For example, if I want to check the previous closing of AUDUSD, I would need to go to the following website, and copy the previous close figure to excel.
But I would need to do the above step for every single currencies. Any way to use vba to scrape such figure?
https://www.marketwatch.com/investing/currency/audusd/historical
https://www.marketwatch.com/investing/currency/usdcad/historical
etc..
Thank you.
[TABLE="width: 0"]
<tbody>[TR]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 0"]
<tbody>[TR]
[TD]AUDUSD
[/TD]
[/TR]
[TR]
[TD]USDCAD
[/TD]
[/TR]
[TR]
[TD]USDCHF
[/TD]
[/TR]
[TR]
[TD]EURUSD
[/TD]
[/TR]
[TR]
[TD]GBPUSD
[/TD]
[/TR]
[TR]
[TD]USDJPY
[/TD]
[/TR]
[TR]
[TD]NZDUSD
[/TD]
[/TR]
[TR]
[TD]USDCNH
[/TD]
[/TR]
</tbody>[/TABLE]
For example, if I want to check the previous closing of AUDUSD, I would need to go to the following website, and copy the previous close figure to excel.
But I would need to do the above step for every single currencies. Any way to use vba to scrape such figure?
https://www.marketwatch.com/investing/currency/audusd/historical
https://www.marketwatch.com/investing/currency/usdcad/historical
etc..
Thank you.
[TABLE="width: 0"]
<tbody>[TR]
[/TR]
</tbody>[/TABLE]