Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Nesting a sheet name reference within a cell reference??? | Excel Discussion (Misc queries) | |||
Changing sheet reference to cell reference | Excel Worksheet Functions | |||
Circular reference error when trying to keep a "running Tally" | Excel Discussion (Misc queries) | |||
Using an offset formula for the reference in a relative reference | Excel Worksheet Functions | |||
Formulas that reference cells that reference another cell | Excel Discussion (Misc queries) |