Can This FTP Download VBA be Modified for FTPS

I had this question after viewing Download file from remote ftp site via VBA (Excel).

I desperately need to find a solution to automate downloading files from an ftps site.

I have tried implementing this solution, but it is always resulting in fail.  I am wondering if it is because this is designed for ftp and not ftps?

I have no experience with this type of code; my experience is pretty basic, so I am not sure if this is resulting in fail because this is designed for ftp and not ftps or if it is something else.

I have verified that I calling it correctly, I have even tried different folders and files on the ftp site, but no luck.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewCommented:
Unfortunately, no it can not.  WININET.DLL can't support FTPS protocols.

If you want to roll up your sleeves and learn more I'd recommend looking at WinSCP.  It is a Windows FTP client that supports automation form VBA.  Take a look at these links to learn more...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jim Dettman (Microsoft MVP/ EE MVE)President / OwnerCommented:
Besides WinSCP, I use Move it Freely FTP client with Access for sFTP and FTPs,

rsburgeAuthor Commented:
Thank you both for the comments.  I apologize for the delayed response; we are in the middle of a release and I forgot about this question for a few days.

I will dig into both suggestions and see what I can figure out.
Bill PrewCommented:
Just another thought as I reread this thread too.  You may find that if you are using the right FTP client software that you don't have to do any fancy VBA scripting, etc.  Many of the popular Windows FTP clients (yes, some cost a little money but typically worth the investment) contain a scripting or automation toolset that can be easier to use than trying to "control" the transfers from the outside via Powershell, VBA, BAT, of VBS scripts.  WinSCP as I mentioned above also has this capability...

Jim mentioned MoveIT, but that vendor also has a solid Windows client offering too that you might look at as another option.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.