macros

fastbuck

Board Regular
Joined
Apr 22, 2014
Messages
144
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
 
In the VBE look under Tools - Refefences and see if any are showing as missing. Uncheck the checkboxes if they do.

Other than that post the code.
 
Upvote 0
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

 
Upvote 0
In tools/references try putting a tick in the Microsoft XLM...... tickbox (can't say which version number it will be as not running 2013).
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,226,835
Messages
6,193,230
Members
453,781
Latest member
Buzby

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