Code I've tried to open the file:
sfilename = "https://url"
Set xl = CreateObject("Excel.Application")
Set xlsheet = xl.Application.Workbooks.Open(Filename:=sfilename, ReadOnly:=True)
and with
Set xlsheet = xl.Workbooks.Open(Filename:=sfilename, ReadOnly:=True)
This opens a file (tested the URL a few times) but is empty, completely blank.
Code I've also tried:
sfilename = "https://url"
Set xl = CreateObject("Excel.Sheet")
Set xlsheet = xl.Application.Workbooks.Open(Filename:=sfilename, ReadOnly:=True)
This way the document doesn't open (as far as I can see, maybe in the background) but getting Range("A1").Value returns 'empty'.
When I try the URL on the browser the file looks fine.
What am I doing wrong?
P.S. A weird issue appears after testing when re-opening excel, it says it has an unsaved document dated 1/1/1601 at 2:00.