Problem with XML reference in VBA

GopherUK

Active Member
Joined
Jan 23, 2009
Messages
473
Hi Folks,

I have a workbook that I have used heavily in the past and just tried to open it on a new machine.

At startup, the workbook imports and parses an XML file. However, when opened, I get error 'Compile error: User-defined type not defined', highlighting the statement 'XMLDoc As MSXML2.DOMDocument' in a module.

Now, the thing to check would be VBA references. And that is the odd thing - the reference to Microsoft XML, v6.0 is already set. Additionally, IntelliSense is working for 'MSXML2', so I am a little lost here.

------------------------

Update: it seems this is a problem with Windows 8 XML 6.0 not exposing MSXML2. I have tried setting references back to XML 3.0 but every time I do that then reopen, the reference has changed back to XML 6.0

Can any one help?
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top