Solved

Error creating DOM doc

Posted on 2001-07-12
8
173 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…

752 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