Mystery compile error "User-defined type not defined" at DataObject

I am using simple code in Word 2016 and getting the error pointing to the statement below

     Dim MyData As DataObject

Installed references are Microsoft Active X Data Objects 6.1 Library, Microsoft Office 16.0 Object Library, Microsoft Word 16.0 Object Library and Microsoft Data Access Components Installed Version

Can anyone suggest what I am missing?

Thanks much!

 

Question Info


Last updated April 5, 2020 Views 3,929 Applies to:
Do following. Should work for you.

Open References in Word VBA
Click on Browse
Pick up this file and click Open
C:\WINDOWS\SYSTEM\FM20.DLL

Not it will add Forms 2.0 library. This should work now.

Let me know if above doesn't work.
Best regards
Vijay Verma

Timezone: UTC+05:30, PST+12:30
Availability Hours (UTC) : 05:00 AM - 05:00 PM

6 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Yup, that worked! Found it in C:\Windows\SysWOW64\FM20.DLL

Thanks much!

2 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Great! I am glad that worked! If you don't have any more questions, feel free to choose a rating and have a great day!
Best regards
Vijay Verma

Timezone: UTC+05:30, PST+12:30
Availability Hours (UTC) : 05:00 AM - 05:00 PM

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Had the same issue (debug error “User-defined type not defined” at Dim doLink As DataObject) with this http://www.ourhints.com/vba/how-to-paste-lotus-notes-link-into-outlook-email/ script in Outlook 2016 and found the file located under c:\Windows\SysWOW64\FM20.DLL being the solution for that two.

       

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Had the same issue (debug error “User-defined type not defined” at Dim doLink As DataObject) with this http://www.ourhints.com/vba/how-to-paste-lotus-notes-link-into-outlook-email/ script in Outlook 2016 and found the file located under c:\Windows\SysWOW64\FM20.DLL being the solution for that two.

14 people were helped by this reply

·

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.