I have an intranetpage containing newer file revs for an Add-in (an XLS file, a
help file, a help content file). When trying to copy the updated files from the
intranet to my Excel Libray folder I get error 52 (bad file name or number). I
use the following code:
Const FHlp = "http://xxx.zzz.com/tools/test_me.xls"
ELP = Application.LibraryPath & Application.PathSeparator
Set FObject = CreateObject("Scripting.FileSystemObject")
FObject.CopyFile FHlp, ELP & "test.xls", True
When I replace FHlp with a path on my C-drive or a LAN drive, copy works fine.
And I can open this file at the intranet when replacing the last code line by:
ThisWorkbook.FollowHyperlink FHlp
For the Excel file it would be possible to open it and then save, but this
doesn't work for the HLP and CNT files.
Any idea how to copy files from our intranet to my Excel Libray folder?