Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Error creating DOM doc

Posted on 2001-07-12
8
Medium Priority
?
179 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 200 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:dilantha
ID: 6277201
Thanx Wolfgang
0
 

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…
Suggested Courses

971 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