+ Reply to Thread
Results 1 to 3 of 3

Downloading file from SFTP

  1. #1
    Registered User
    Join Date
    03-06-2014
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2010
    Posts
    9

    Downloading file from SFTP

    Hey guys,

    My objective is to find a way to populate a model on excel by extracting specific raw data which exists in an SFTP server. I found a macro template here which has really helped tie in a big part of this task, here: http://www.excely.com/template/ssh-client.shtml (download of the template available at the bottom of the page).

    By inputting the information required for connecting to the STFP, I can click the "download file" and VBA will launch my SFTP client, WinSCP, and open the folder I specify. BUT, it does not actually open the file or locate it, it just does not make that final step.

    Looking through the private code by clicking 'view source' on the tab, I can see all the macro codes, but I am not sure what should be modified. I see that it is calling a 'Shell', but I fail to see any pre-defined Shell function. My guess is that it is somehow calling a text file which in turn gets run via command-line somehow, but this is not visible within the code.

    I realize this may be ambiguous if unable to try on my specific server, but any information or guidance is greatly appreciated.

    This one's a toughie, I thank any help in advance!

    Paul

  2. #2
    Registered User
    Join Date
    01-25-2018
    Location
    NYC
    MS-Off Ver
    2016
    Posts
    1

    Re: Downloading file from SFTP

    Hi Paul - I see no one has responded to this. I am following the same steps you have used and have run into the same problem. Did you every figure out what to do with the "Shell"?

    Thanks,
    Peter

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Downloading file from SFTP

    I have not tried the code, nor do I have access to SFTP sever. This is just to give you some pointers, but it might not make sense or work. If you managed to access the page, you need to find where the file you want to down is located within a page. I think the code just gives you how to access a site, but unlikely to pin point where the file is located The template may have a file extension which gives you what kind of file it is. It is mostly likely going to be a pdf, xls or cvs files.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. downloading file from Web
    By headhair in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-01-2014, 07:28 AM
  2. Task Scheduler Downloading an Empty, Bad File Before Actual File Exists...Not Good
    By jamesdeuce in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-23-2014, 01:25 PM
  3. Downloading a CSV file from the internet
    By arleutwyler in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-04-2013, 10:57 AM
  4. Help with Downloading A CSV file
    By kchappy32 in forum Excel General
    Replies: 0
    Last Post: 06-05-2012, 03:24 PM
  5. Downloading Excel file
    By mullinam in forum Excel General
    Replies: 0
    Last Post: 05-07-2005, 04:49 PM

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