ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Macro in Excel 2002 to save a workbook to a FTP location (https://www.excelbanter.com/excel-discussion-misc-queries/2309-macro-excel-2002-save-workbook-ftp-location.html)

Lloyd

Macro in Excel 2002 to save a workbook to a FTP location
 
Hello
My company recently migrated from Excel 97 to Excel 2002. We are using an
Excel spreadsheets, with a macro created to save a workbook to a ftp
location. It worked fine on Excel 97. Now that we moved to Excel 2002, we
receive the following error message when we run the macro:

Run-time error '1004':
Method 'SaveAs' of object '_Worksheet' failed

Below is the code we're using:
ActiveWorkbook.SaveAs FileName:= _

"ftp://duip501/usr/appl/sld/prod/data/ready/in/sld_bloomb_div_info.txt", _
FileFormat:=xlText, CreateBackup:=False

MsgBox "The FTP has been completed. Please exit Excel and click on
No when asked if file should be saved."

Does anyone know why this code works in Excel 97, but not in Excel 2002?

Your help is greatly appreciated.

Thanks.




All times are GMT +1. The time now is 12:08 AM.

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