View Single Post
  #2  
Old October 18th 07, 07:43 PM posted to microsoft.public.outlook.program_addins
Helmut Obertanner
external usenet poster
 
Posts: 4
Default Access object in explorer from type olExplorer

Hi Christian,

try to use the GetElementByID method.
That should give you the object.

Hope this helps,
Greets, Helmut


"Christian Havel" schrieb im
Newsbeitrag news
Hi,

I have an HTML page which contains an grid control. In JavaScript I access
the grid control like following:

document.all['componentName']

In Outlook I check on ActiveExplorers class on type "olExplorer". I added
a
reference to the mshtml.lib and retrieved the ActiveExplorer content like
following:

Dim htmlDoc As MSHTML.HTMLDocument
Set htmlDoc = Application.ActiveExplorer.HTMLDocument

Now I want to access my component. My idea was to access it like in
JavaScript, but in the document the 'componentName' object was not found.

How can I access my component in the HTMLDocument in the ActiveExplorer?
Christian


Ads