[Hi all - my first post so please forgive any noobness]
I have a worksheet with an auto_open() sub which opens another workbook via a URL to manipulate some data.
Application.Workbooks.Open "http://myUrl/datafile.xls", Password:=myPwd
That works OK, but I've found that if the user's PC is not connected to the internet then it will use a cached copy of the "datafile.xls" workbook. I had expected it to give me an error code, but that only happens if the file hasn't been opened before..... (no cached copy).
Can anyone suggest a way to either ignore the cached copy, or to delete the cached copy of the data workbook from the user's PC before trying to open the URL?
Thanks
I have a worksheet with an auto_open() sub which opens another workbook via a URL to manipulate some data.
Application.Workbooks.Open "http://myUrl/datafile.xls", Password:=myPwd
That works OK, but I've found that if the user's PC is not connected to the internet then it will use a cached copy of the "datafile.xls" workbook. I had expected it to give me an error code, but that only happens if the file hasn't been opened before..... (no cached copy).
Can anyone suggest a way to either ignore the cached copy, or to delete the cached copy of the data workbook from the user's PC before trying to open the URL?
Thanks