Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default "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 !


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default "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') ;
}



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default "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
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
cannot insert rows -error message "cannot shift object off sheet" robwan Excel Discussion (Misc queries) 1 November 10th 07 03:01 PM
Error message: "cannot shift object off sheet" Peter Vickers Excel Worksheet Functions 4 December 8th 06 04:52 PM
VB Error Object Library Not Registered Karine Rivet Excel Discussion (Misc queries) 2 April 11th 06 07:13 PM
I get an error message that says "Cannot shift object off a page" JZygmun Excel Discussion (Misc queries) 1 March 7th 06 02:18 AM
'Object library not registered' in Excel97 Humberto Excel Programming 3 August 11th 03 02:41 PM


All times are GMT +1. The time now is 09:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"