Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FTP Help

Status
Not open for further replies.

bmcilroy

Technical User
Feb 6, 2006
13
US
I have looked all through tek-tips and all over the web and am having problems creating a simple solution to upload a file to my website. I have VB code inside an Excel module that does multiple things. Saves, prints Adobe files, imports data to Access, e-mails, etc... Now I want to upload a .pdf to my website automatically through FTP.

The directory I want to put everything at is ftp://truthbenefits.com/public_html/Forms. I can obviously fill in my User ID & Password.

Below is a simple Sub routine. Can anyone add the appropriate code to upload the file?
________________________________________________

Sub Upload()

Dim PDF1 As String

PDF1 = "C:\Whatever.pdf"

End Sub

_________________________________________________
 
I've already gone to that particular site and posting, but since I'm not over versed in VB, I can't seem to manipultae it to get it to work. Any chance you could help me with the code?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top