By now, I'm as confused as I was when I began this journey. I understand that there is an Inet control, but I am trying use this control without having to have a form to place it on. How do you get the Inet control started?
Here is my code:
when ran, this is my error "Run-time error '91': Object variable or With block variable not set"
Here is my code:
Code:
Option Explicit
Public Inet1 As InetCtlsObjects.Inet
Public Sub Main()
Inet1.AccessType = icUseDefault
With Inet1
.URL = "ftp://test"
.UserName = "rrrrr"
.Password = "rrrrr"
.Execute , "PUT", "C:\GAS.txt"
.Execute , "CLOSE"
End With
End sub
when ran, this is my error "Run-time error '91': Object variable or With block variable not set"