Bypassing Excel's FTP login/password dialog

T

tyler.paavola

Hi all,

Currently, I am using

Workbooks.OpenText Filename:= "ftp://username:password@ftpservername/
directory" & (some other parameters)

to connect to a ftp server to download files that will generate my
data.

The script works great, the only problem is that it brings up a FTP
login screen, prompting for the username and password.
This script needs to be automated, so I cannot have a login dialog
box.

As shown above, I have put the username and password details within
the ftp link, but the dialog box is still displayed.


Any ideas?
many thanks in advance
 
B

Brouws

Have you tried adding :

Application.DisplayAlerts = False

before this, and switching it back on afterwards?
 
T

tyler.paavola

Have you tried adding :

Application.DisplayAlerts = False

before this, and switching it back on afterwards?

Yeah, I've tried that, but the login dialog still comes up
I am thinking I need some way of passing it the username/password,
because I don't think I can suppress the dialog and still have it log
into a secure ftp
 
T

tyler.paavola

Have you tried adding :

Application.DisplayAlerts = False

before this, and switching it back on afterwards?

Yeah, I've tried that, but the login dialog still comes up
I am thinking I need some way of passing it the username/password,
because I don't think I can suppress the dialog and still have it log
into a secure ftp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top