Hi, I just bought a new laptop with excel 2013 on it. I'm trying to run my spreadsheets with macros on them but an error keeps coming up. Compile error. User-defined type not defined. Can anyone help. Thanks Narelle
Thanks for your reply. I created the spreadsheet and macros on my old computer with excel 2007. It worked fine. It has a number of macros some have a command to retrieve information from a web site. It’s those macros that don’t work. The ones that don’t need to retrieve the data work fine. I’m a real novice at this sort of stuff. The first line below is the one that the macro seems to get stuck on. Many thanks Narelle
Dim xmldoc As MSXML2.DOMDocument
Set xmldoc = New MSXML2.DOMDocument xmldoc.async = False
Thanks for your help. I had a look and Microsoft XLM V6 was already checked so I unchecked it and checked V3 and it all works great now. Cheers Narelle
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.