Results 1 to 8 of 8

Thread: Help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Posts
    148

    Arrow 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

  2. #2
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    Try this:

    Dim Withevents IE As Object
    or
    Dim IE As Object

  3. #3
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    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.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Posts
    148
    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

  5. #5
    Frenzied Member
    Join Date
    Mar 2001
    Location
    You are HERE •™
    Posts
    1,300
    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.

  6. #6
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    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.

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Posts
    148
    thanks i had the wrong thing reference
    Thanks For All Your Help!
    If I helped you I give God the glory

    From CodeGreen

  8. #8
    Frenzied Member jjortiz's Avatar
    Join Date
    Mar 2001
    Location
    NYC
    Posts
    1,768
    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
  •  



Click Here to Expand Forum to Full Width