![]() |
"Library not registered" message accessing an HTMLDocument object
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 structu <a href="#" onclick="window.open('/showDocument.php?file=AA103115.html','width=350,he igh t=250,top=200,menubar=no,scrollbars=yes,resizable= yes');" I tried to re-register excel, but at no avail. My questions a - what can I do to correct the situation ? - how can one find the name of the library causing this kind of message ? TIA ! |
"Library not registered" message accessing an HTMLDocument object (additional info)
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') ; } |
"Library not registered" message accessing an HTMLDocument object
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 |
All times are GMT +1. The time now is 01:23 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com