LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default IE not detected

Hi all,
Sorry to repost but my earlier post posted thru
excelforums did not appeared on this news group.

I am new here but would like to post one problem.
I have developed a application that uses IE for querrying
data from our intranet servers(majority code was picked up
from this NG and tweeked to my requirement)

I have noticed that the application always opens a new
instance of the IE. I tried all the solutions available on
this NG but no joy. If IE is open, I would like to use the
same for my application. Do I need any referance missing?

Code below gives me runtime error 429 "Activex componant
can't create object"

If I comment out the on error resume next statement, code
always create new instance of IE even if IE is already
running.
Please guide me.
Jagruti


Here is my code :
Sub detect_IE()
Dim mybrowser As Object
On Error Resume Next
Set mybrowser = GetObject(, "InternetExplorer.Application")
If Err.Number = 429 Then
Set mybrowser = CreateObject
("Internetexplorer.application")
mybrowser.Visible = True
Err.Clear
End If
With mybrowser
..navigate "http://www.google.com"
End With

On Error GoTo 0

End Sub

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ambiguous name detected? Derrick Excel Discussion (Misc queries) 7 July 8th 09 07:05 PM
errors detected in by excel steve New Users to Excel 2 May 27th 05 11:27 PM
ambiguous name detected mark Excel Programming 4 February 4th 04 03:01 PM
Ambiguous Name Detected Nigel[_5_] Excel Programming 11 October 26th 03 09:59 AM
Ambiguous Name Detected:~ jaf Excel Programming 0 September 12th 03 12:56 AM


All times are GMT +1. The time now is 09:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"