+ Reply to Thread
Results 1 to 4 of 4

Help with saveas ftp file problem

  1. #1
    Registered User
    Join Date
    09-29-2003
    Posts
    22

    Help with saveas ftp file problem

    I want to save my excel file onto our server using the save as ftp function:

    ActiveWorkbook.SaveAs Filename:= _
    "ftp://uname:[email protected]/subdir/" + fname

    where fname is some user specified name.

    This fails - which on closer inspection would appear to be due to excel placing quotation marks around the filename and so when it tries to save I get an error.

    Has anyone found a way around this problem (other than using sendkeys - which works but isn't desireable)

  2. #2
    keepITcool
    Guest

    Re: Help with saveas ftp file problem

    2 things:

    it's vb not java: dont use + as concatenation but &

    more importantly you need to sanitize the filename
    and prepare it for urls. replace spaces with %20 etc.





    --
    keepITcool
    | www.XLsupport.com | keepITcool chello nl | amsterdam


    jmoffat wrote :

    > This fails - which on closer inspection would appear to be due to
    > excel placing quotation marks around the filename and so when it
    > tries to save I get an error.


  3. #3
    Registered User
    Join Date
    09-29-2003
    Posts
    22
    Nope I tried it with full URL encoding and it still fails.

  4. #4
    keepITcool
    Guest

    Re: Help with saveas ftp file problem

    hmmm.

    did you read
    http://support.microsoft.com/default.aspx?scid=kb;[LN];834489
    A security update is available that modifies the default behavior of
    Internet Explorer for handling user information in HTTP and in HTTPS
    URLs


    --
    keepITcool
    | www.XLsupport.com | keepITcool chello nl | amsterdam


    jmoffat wrote :

    >
    > I want to save my excel file onto our server using the save as ftp
    > function:
    >
    > ActiveWorkbook.SaveAs Filename:= _
    > "ftp://uname:[email protected]/subdir/" + fname
    >
    > where fname is some user specified name.
    >
    > This fails - which on closer inspection would appear to be due to
    > excel placing quotation marks around the filename and so when it
    > tries to save I get an error.
    >
    > Has anyone found a way around this problem (other than using sendkeys
    > - which works but isn't desireable)


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1