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.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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!
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
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.
Yup, that worked! Found it in C:\Windows\SysWOW64\FM20.DLL
Thanks much!
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!
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.
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.