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!

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

13 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

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

How satisfied are you with this reply?

Thanks for your feedback.

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

Thanks much!

2 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

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

How satisfied are you with this reply?

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

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

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

How satisfied are you with this reply?

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.

       

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

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

How satisfied are you with this reply?

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.

16 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

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

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated November 16, 2020 Views 6,280 Applies to: