Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 267
Default Internet explorer

How might I refer to an open instance of internet explorer?
I want to return the web address of an open instance of IE in a cell
If it were a web browser object it would be this:

sheets.("Main Board").Range("C1")=webbrowser1.location URL

What do I need to replace "webbrowser1" with??
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Internet explorer

Sub ListIeUrls()

Dim objShell As Object, o As Object

Set objShell = CreateObject("Shell.Application")
For Each o In objShell.Windows
If TypeName(o.document) Like "HTMLDocument*" Then
Debug.Print o.document.Location
End If
Next o

End Sub

Tim

"Atishoo" wrote in message
...
How might I refer to an open instance of internet explorer?
I want to return the web address of an open instance of IE in a cell
If it were a web browser object it would be this:

sheets.("Main Board").Range("C1")=webbrowser1.location URL

What do I need to replace "webbrowser1" with??



Reply
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
Internet Explorer da Excel Discussion (Misc queries) 4 October 9th 08 09:31 PM
Activeworkbook and Internet Explorer BobT Excel Programming 1 June 11th 07 09:04 PM
Interaction with Internet Explorer PaulD Excel Programming 7 February 5th 05 07:27 PM
Internet Explorer & Excel David Excel Programming 0 February 4th 05 08:51 PM
internet explorer doris Excel Discussion (Misc queries) 1 January 5th 05 09:44 PM


All times are GMT +1. The time now is 12:54 AM.

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

About Us

"It's about Microsoft Excel"