I create a text file with the commands to run all the ftp statements, and then call it with this ExecCommand statement. I am not sure where I found the ExecCommand code, as it includes a fair bit of support code. I hope this helps
The ftp script executes the log in, sets default folders, and then does gets/puts etc as required. It took a fair while to reach the final version, I recall. We had issues with ports not being open, and so on.
Call ExecCommand("C:\Windows\System32\ftp.exe -ns:" & Chr(34) & scriptfolder & ScriptFileSend & Chr(34), vbMinimizedFocus)