|
-
May 30th, 2001, 02:32 PM
#1
Thread Starter
Addicted Member
Help
how can i do this i get an error
Dim withevents IE As InternetExplorer
Private Sub Form_Load()
Set IE = CreateObject("InternetExplorer.application")
IE.Visible = True
End Sub
Thanks For All Your Help!
If I helped you I give God the glory
From CodeGreen
-
May 30th, 2001, 02:38 PM
#2
Frenzied Member
Try this:
Dim Withevents IE As Object
or
Dim IE As Object
-
May 30th, 2001, 02:39 PM
#3
Frenzied Member
Okay you are probably getting a user defined error. The code looks fine to me so i am not going to test it. Here is what i think that the problem is. You need to refrence the Microsoft Internet controls from Projects the refrences.
-
May 30th, 2001, 03:03 PM
#4
Thread Starter
Addicted Member
i did if i take out Dim withevents IE As InternetExplorer
and do this it works put i need the withevents
Private Sub Form_Load()
Set IE = CreateObject("InternetExplorer.application")
IE.Visible = True
End Sub
Thanks For All Your Help!
If I helped you I give God the glory
From CodeGreen
-
May 30th, 2001, 03:11 PM
#5
Frenzied Member
It's like jjortiz said: You will need to make a reference to the "Microsoft Internet Controls". Click Project\References, and then find and put a checkmark next to "Microsoft Internet Controls". Everything should work then, even with the Declaration Dim withevents IE As InternetExplorer.
-
May 30th, 2001, 03:12 PM
#6
Frenzied Member
I just tested the code. I mean when i posted the first time the code looked fine and it is. It works find on my system as long as the refrences the MS internet controls.
-
May 30th, 2001, 03:20 PM
#7
Thread Starter
Addicted Member
thanks i had the wrong thing reference
Thanks For All Your Help!
If I helped you I give God the glory
From CodeGreen
-
May 30th, 2001, 03:21 PM
#8
Frenzied Member
Hey hey no refrencing wrong things around here. People might get the wrong idea. Okay jjortiz stop with the dry humor and thanks. You are welcome.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|