Solved

Error creating DOM doc

Posted on 2001-07-12
8
168 Views
Last Modified: 2012-08-13
Hi

  I am getting a 'type mismatch' error when I am trying to create a XML document. I have set a reference to Microsost XMl, v4.0.

Could someoen please help.

Dylan

Dim usersDoc As DOMDocument
Set usersDoc = CreateObject("Microsoft.XMLDOM")
0
Comment
Question by:dilantha
  • 5
  • 3
8 Comments
 
LVL 4

Accepted Solution

by:
WolfgangKoenig earned 50 total points
ID: 6277094
Try:
Dim usersDoc As MSXML.DOMDocument
Set usersDoc = CreateObject("Microsoft.XMLDOM")

The syntax is correct
WoK
0
 
LVL 4

Expert Comment

by:WolfgangKoenig
ID: 6277096
You can take also V2.0
...
WoK
0
 
LVL 4

Expert Comment

by:WolfgangKoenig
ID: 6277110
This is also right:
Dim usersDoc As MSXML.DOMDocument
Set usersDoc = New DOMDocument

BYe
WoK
0
 

Author Comment

by:dilantha
ID: 6277201
Thanx Wolfgang
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:dilantha
ID: 6277202
Thanx Wolfgang
0
 

Author Comment

by:dilantha
ID: 6277203
Thanx Wolfgang
0
 

Author Comment

by:dilantha
ID: 6277207
Thanx Wolfgang
0
 

Author Comment

by:dilantha
ID: 6277209
Thanx Wolfgang
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now