+ Reply to Thread
Results 1 to 3 of 3

downloading changing txt file from ftp

  1. #1
    Forum Contributor
    Join Date
    08-31-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    204

    downloading changing txt file from ftp

    Hi all, I am having hard time putting this together.. Was hoping someone would be able to help.

    is there a way to set up a macro in excel VBA to download a txt file where the filename changes based on the business day? The only thing that would change is the date..I need to download daily files for previous business day in a shared drive
    so for example, for 15th I would download the file: "name_02142011"

    I have the ftp details, but also looking to download the file on a shared drive

    Any help would be greatly appreciated

    Thanks so much

    Danny

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,093

    Re: downloading changing txt file from ftp

    Have you got something that downloads a file with a fixed name?

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    08-31-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    204

    Re: downloading changing txt file from ftp

    I have below code..but I got lost..because it asked to set a reference to Microsoft Internet Transfer Control(located in \windows\system\msinet.ocx) which I did not have..so I downloaded the MSINET.OCX but not sure where I have to put this file

    Please Login or Register  to view this content.

+ 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