
Internet Transfer Control In COM
Try this way:
Sub Main()
Dim ic As Object ' << Inet Transfer Control
Set ic = CreateObject("InetCtls.Inet.1")
' do something with it
' <your code here>
ic.URL = "http://www.microsoft.com"
' <and here>
Set ic = Nothing ' destroy object
End Sub
- Jani
Quote:
>I want to use the internet transfer control in a COM object so I
>private withevents ITC as Inet
>When I
>set ITC = new Inet
>I get an error regarding invalid use of New. The intellisense didn't
actually
>offer me the choice but I tried any way because when I didn't do anything I
got
>the
>error 91 Object variable or with block not set