Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default SaveAs method fails when saving to FTP site.

If you manually save a file to an FTP site in Excel, you
get the FTP log on dialog where you are prompted for
username and password to log into the FTP site...

How do you log on to the FTP site using Visual Basic so
the SaveAs method doesn't fail, since there is no argument
for providing the username & password required to access
the FTP site?

Thanks,

Steve Brennan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 79
Default SaveAs method fails when saving to FTP site.

Steve,

I've no idea if this works for FTP or if it is site specific but this is
from Stephen Bullen, John Green, Bovey, Rosenberg's book.

set obk = ")

obk.saveas "

Robin Hammond
www.enhanceddatasystems.com
Check out our XspandXL add-in


"Steve Brennan" wrote in message
...
If you manually save a file to an FTP site in Excel, you
get the FTP log on dialog where you are prompted for
username and password to log into the FTP site...

How do you log on to the FTP site using Visual Basic so
the SaveAs method doesn't fail, since there is no argument
for providing the username & password required to access
the FTP site?

Thanks,

Steve Brennan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default SaveAs method fails when saving to FTP site.

Robin,

Thanks for the reply! The SaveAs method fails, and the
Open method doesn't pass the UserID and Password, but I
used it like this:

On Error Resume Next
Workbooks.Open Filename:= _
"

This does force the FTP Log On dialog, and after the user
enters the username and password, it attempts to open a
non-existent file on the FTP server...it errors, but
the "On Error Resume Next" ignores the error and the
procedure continues to run. The SaveAs method then works
because the user has logged in to the FTP site.

-----Original Message-----
Steve,

I've no idea if this works for FTP or if it is site

specific but this is
from Stephen Bullen, John Green, Bovey, Rosenberg's book.

set obk = workbooks.open

")

obk.saveas "

Robin Hammond
www.enhanceddatasystems.com
Check out our XspandXL add-in


"Steve Brennan" wrote in message
...
If you manually save a file to an FTP site in Excel, you
get the FTP log on dialog where you are prompted for
username and password to log into the FTP site...

How do you log on to the FTP site using Visual Basic so
the SaveAs method doesn't fail, since there is no

argument
for providing the username & password required to access
the FTP site?

Thanks,

Steve Brennan



.

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 using SaveAs method Sujata Excel Discussion (Misc queries) 4 March 30th 10 07:21 AM
SaveAs method error Horatio J. Bilge, Jr. Excel Discussion (Misc queries) 3 October 6th 09 09:05 PM
Error Excel: 1004 SaveAs method of Workbook class failed sebastien Excel Programming 0 August 13th 03 09:59 AM
SaveAs method L Buchy Excel Programming 1 July 11th 03 11:27 PM


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

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"