Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Get a reference to the currently running IE ?

I know that to create a new instance of IE, I can use:

Dim oIE As InternetExplorer
Set oIE = New InternetExplorer

How does one get a reference to the current instance? I tried "GetObject"
but I must be doing something wrong. I won't post since it fails anyway.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Get a reference to the currently running IE ?

What type of Ref?

if u want the value of a form field or something like that its
oIE.Document.formName("fieldName").value

if u want the body source to parse then try
sVar = oIE.Document.Body.innerhtml


etc...

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Get a reference to the currently running IE ?

I thought my original post was clear, but I meant to ref the currently
running IE application itself...can you help me out?

"CodeSponge" wrote:

What type of Ref?

if u want the value of a form field or something like that its
oIE.Document.formName("fieldName").value

if u want the body source to parse then try
sVar = oIE.Document.Body.innerhtml


etc...


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Get a reference to the currently running IE ?

O, ic, sorry about that.
you could try something like the following


Public Declare Function FindWindow& Lib "user32" Alias "FindWindowA"
(ByVal lpClassName$, ByVal lpWindowName$)

and then call it like this

hMessageBox = FindWindow("#32770", "WindowName")

I this is what I do when I want to grab a msg box and kill it.
I'm not sure what the lpClassName for IE would be tho
hope it helps.

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
Nesting a sheet name reference within a cell reference??? Broyston Excel Discussion (Misc queries) 9 July 8th 08 08:35 PM
Changing sheet reference to cell reference TeeJay Excel Worksheet Functions 3 October 19th 07 11:50 AM
Circular reference error when trying to keep a "running Tally" CrisT Excel Discussion (Misc queries) 0 June 26th 07 06:00 PM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
Formulas that reference cells that reference another cell Andrea Excel Discussion (Misc queries) 7 October 19th 06 08:14 AM


All times are GMT +1. The time now is 10:43 PM.

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"