PC Review


Reply
Thread Tools Rate Thread

Baffling problem with XML Reference in Excel Add-in

 
 
aeroshanks@gmail.com
Guest
Posts: n/a
 
      13th Jun 2007
Hi,

I have an Excel Add-in toolbar, which I created using VBA. My system's
configuration is:

Platform: Win 2000, SP4
Excel Version: MS Excel 2000 (9.0.8960 SP-3)
Microsoft Visual Basic: 6.3, VBA: Retail 6.4.9972, Forms3: 11.0.6550

The Add-in includes the "Microsoft XML, v3.0" reference for XML data
management.

The toolbar is created dynamically each time the Add-in loads.
(The toolbar creation code is in the Workbook_Open event handler.)

The Add-in works fine on my machine, but not always on other users'
machines.

I have noticed one of the following problems when this Add-in is used
on other PCs (i.e. it is kept in the Microsoft Add-ins folder):

1. When a new instance of Excel is opened, the message "Unable to load
DLL" is seen.
If the user tries creating a new XML-based project (File->New Project)
using the toolbar,
the error message "User-defined Type not defined" is seen, pointing to
the VBA statement
"Public XMLDoc As MSXML2.DOMDocument30".

In the Project References, "MISSING: Microsoft XML, v5.0" is seen,
though the PC
on which the Add-in was developed used only v3.0 !

2. When a new instance of Excel is opened, the toolbar is displayed
without any error,
and all XML operations work fine. However, when an existing Excel
workbook is opened,
Excel crashes while loading the toolbar. (Rarely seen)

3. The toolbar loads correctly on opening Excel, a new XML project can
be created,
but on opening a user form, the error message "Automation Error....." is
displayed.

In cases #1 and #3 above, the problem may be resolved (on the PC in
which the problem occurs) by following these steps:
a) In the Add-in's Project References dialog, de-select the XML
Reference, then click OK to close the dialog.
b) Open Project References again, locate "Microsoft XML v3.0", select
it, then click OK.
c) Save the Add-in, and close Excel.
d) Re-open Excel.

I would be grateful if someone can help me resolve this XML issue.

Thanks,
Shankar

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Baffling DNS Problem =?Utf-8?B?bXZwMjM=?= Windows XP Networking 7 27th Jul 2008 05:16 AM
Baffling problem Mike Chamberlain Windows XP Basics 2 17th Mar 2005 06:39 AM
Baffling problem with links =?Utf-8?B?U3RlcGhlbiBQT1dFTEw=?= Microsoft Excel Worksheet Functions 13 8th Dec 2004 08:28 PM
Baffling Print Problem JD Microsoft Word Document Management 0 20th Apr 2004 09:06 AM
Baffling Problem Chaplain Doug Microsoft Access Reports 1 5th Apr 2004 01:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:51 AM.