"Library not registered" message accessing an HTMLDocument object

M

Mike S.

Hi !

I'm currently debugging a VBA 5 program (written in Excel97).

Part of the program opens a web page using the web browser control and do
some manipulations.

While stepping into part of the code, I go into the "local variables" window
to drill into the HTMLDocument object to look at some values.

Everything works fine so far except when I click on the plus sign besides
the "onclick" property in the document's links collection (objDoc ->
links -> Item14 -> onclick) where I get the "Library not registered"
message.

The same happens if I drill down another way as: objDoc -> body -> all ->
Item75 -> onclick (where Item75 is defined as HTMLAnchorElement type).

Looking into the references show that the Microsoft HTML Object Library
(C:\Windows\System\MSHTML.tlb) is correctly checked and referenced (file
version is 6.00.2800.1106) while I guess that if I can drill down to this
level into the object, this is not the real cause of the problem.

BTW the corresponding HTML source has the following structure:

<a href="#"
onclick="window.open('/showDocument.php?file=AA103115.html','width=350,heigh
t=250,top=200,menubar=no,scrollbars=yes,resizable=yes');">


I tried to re-register excel, but at no avail.

My questions are:
- what can I do to correct the situation ?
- how can one find the name of the library causing this kind of message ?

TIA !
 
M

Mike S.

Additional info following my previous message:

1) oddly enough, in the local variables window, the "Type" column of the
"onclick" property is empty. It is the only property that lacks this
feature.

2) printing the "vartype" of the "onclick" property gives 8 (vbString) as
result.

3) printing the onclick property value results on the following:

function anonymous()
{
window.open('../dshowDocument.php?file='AA103115.html','width=350,height=250
,top=200,menubar=no,scrollbars=yes,resizable=yes');
}
 
R

ross

Mike,
Right not the best on this, but i had a like issue (with VB 5), , i
copyed the lib file (.dll) to my meachine and reinstalled that
VERSION, maby it is this that is cuase issues,
Good Luck
Ross
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top