Cosmos75
Registered User.
- Local time
- Today, 17:04
- Joined
- Apr 22, 2002
- Messages
- 1,281
I have some code from an database that I did not build that is giving me trouble when trying to compile. It starts with these three declarations.
I have 'Microsoft XML, v6.0' checked in my VBA references and the file for it does exist on my computer. WHen I try to compile I get a "User-defined type not defined" compile error.
I tried going through this link but I think I have the XML DOM already installed, which is what I think I need. But I'm not sure, hence the reason for my post.
A Beginner's Guide to the XML DOM: https://msdn.microsoft.com/en-us/library/aa468547.aspx
I don't think the oDoc declaration is needed, but I'm not 100% sure. The only code use by it is as follows:
Not sure if that is actually doing anything.
Anyone have any idea what I'm missing?
Thanks!
Code:
Dim oDoc As DOMDocument
...
Dim wrt As MXXMLWriter40
Dim atrs As New SAXAttributes30
I have 'Microsoft XML, v6.0' checked in my VBA references and the file for it does exist on my computer. WHen I try to compile I get a "User-defined type not defined" compile error.
I tried going through this link but I think I have the XML DOM already installed, which is what I think I need. But I'm not sure, hence the reason for my post.
A Beginner's Guide to the XML DOM: https://msdn.microsoft.com/en-us/library/aa468547.aspx
I don't think the oDoc declaration is needed, but I'm not 100% sure. The only code use by it is as follows:
Code:
Dim oDoc As DOMDocument
Private Sub Form_Unload(Cancel As Integer)
ReleaseObjects
End Sub
Private Sub ReleaseObjects()
Set oDoc = Nothing
End Sub
Not sure if that is actually doing anything.
Anyone have any idea what I'm missing?
Thanks!