ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Download of the file from macro (https://www.excelbanter.com/excel-programming/320970-download-file-macro.html)

John Elink

Download of the file from macro
 
Hi there

I can start the download of the file using the Workbook.Open
Workbooks.Open "ftp://ftp.my.com/1.zip"

However, how can I handle the error message in the case that the file
I am looking for (1.zip) does not exist?
Thanks a lot

Cheers
Johny

Tom Ogilvy

Download of the file from macro
 
On Error Resume Next

Workbooks.Open "ftp://ftp.my.com/1.zip"

On Error goto 0

--
Regards,
Tom Ogilvy

"John Elink" wrote in message
om...
Hi there

I can start the download of the file using the Workbook.Open
Workbooks.Open "ftp://ftp.my.com/1.zip"

However, how can I handle the error message in the case that the file
I am looking for (1.zip) does not exist?
Thanks a lot

Cheers
Johny





All times are GMT +1. The time now is 06:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com