The following link has a button as "Export to Excel". When clicked, it downloads an Excel sheet with details for the particular stock.
I want to get this downloaded excel file through Excel VBA, where I have a set of links it loops through them download books from each link, copy certain data and paste it. While writing the code I realised that for downloading from web, the link should end with xlsx or csv or something related to excel.
Sub transfercsv()
sLink = "http://www.screener.in/company/?q=500095" 'I can loop and attach links to this..
sfile = "downloaded.xls" 'I can get this rectified as well...
ssheet = "Data sheet"
'Further code I can build up
....
End sub
Final question: "How can I ask Excel VBA to download the workbook behind the Export to Excel link."
or
"How can I find the xlsx link behind the Export to Excel button."
P.S:- I have tagged as JSON as well, becasuse while researching I found the the export link has something to do with JSON..