Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Programmatically saving a workbook to a ftp location fails

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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem saving workbook to network location eddie Excel Discussion (Misc queries) 0 April 14th 05 09:28 PM
Sheets select method fails when workbook is opened by another workbook Mike Excel Programming 2 June 8th 04 04:17 AM
Close Workbook Programmatically Lucy[_2_] Excel Programming 3 December 30th 03 08:17 PM
saving excel file as tab delimited text programmatically Philip[_4_] Excel Programming 0 October 23rd 03 10:12 AM
SaveAs method fails when saving to FTP site. Steve Brennan[_2_] Excel Programming 2 September 30th 03 09:03 PM


All times are GMT +1. The time now is 09:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"