Consulting

Results 1 to 3 of 3

Thread: Running FTP commands from Excel Macro

  1. #1

    Running FTP commands from Excel Macro

    I have a VBA Excel macro written which has to create a CSV file from the given sheet and FTP the genrated CSV file to the remote server..

    The sample code that iam using for FTP is:

    open SBYADB2307
    FTPCOMP
    Lincoln1
    ascii
    cd /
    cd /db26000/nbstpv8/transfer
    send C:\Nagaraj@rushmore\dfltcompopt.csv
    bye
    exit

    This commands are stored in text file and iam using "ftp -s:textfilename" option to run this FTP commands within Excel macro.

    The problem for me is, the same commands executed manually will deliver the CSV file to the remote server. But when it runs through the Macro, it doesn't.

    Please help me.

  2. #2
    VBAX Tutor CCkfm2000's Avatar
    Joined
    May 2005
    Posts
    209
    Location
    this is out of my depth but check this link

    http://www.bygsoftware.com/Excel/VBA/ftp.htm

  3. #3
    Thanks... The link you gave is helpful..

Posting Permissions

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