Can't find Microsoft Forms 2.0 Object Library or FM20.DLL

前端 未结 5 1724
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-06 20:21

In my Excel 2016 project (Windows 7), I\'d like to work with the clipboard:

Dim DataObj As New MSForms.DataObject
DataObj.GetFromClipboard

Bu

相关标签:
5条回答
  • 2020-12-06 21:03

    On 64-bit machines, FM20.dll is in the C:\Windows\sysWOW64 directory. It's 32 bit.

    0 讨论(0)
  • 2020-12-06 21:14

    Maybe you can try a late binding using the CLSID

    Dim MyDataObj As Object Set MyDataObj = CreateObject("New:{1C3B4210-F441-11CE-B9EA-00AA006B1A69}")

    or something like that.

    0 讨论(0)
  • 2020-12-06 21:15

    I found FM20.DLL in C:\Program Files (x86)\Microsoft Office\root\VFS\SystemX86; that's with MS Office 2016 and Windows 10.

    0 讨论(0)
  • 2020-12-06 21:15

    That library should really be there. I just checked on my Excel 2016 installation (32 bit) and it is there by default (just not checked). I recommend to repair your Office if it isn't there.

    0 讨论(0)
  • 2020-12-06 21:20

    From this old knowledge base article my guess would be this DLL is perhaps only included in older versions of Office? This part seemed promising:

    As an alternative to having your end users install Microsoft Office, you can have them freely download and install the Microsoft ActiveX Control Pad, which also installs the Fm20.dll. For more information, see the following Microsoft Developer Network (MSDN) Web site: http://msdn.microsoft.com/en-us/library/ms968493.aspx

    However, as the linked tool is from 1997, you'll need to run its setup in "compatibility mode" by right-clicking on the executable and selecting "Properties" then clicking on the "Compatibility" tab and selecting "Windows 95" in the "Run this program in compatibility mode for:" dropdown. Then run it as administrator (this worked for me using Windows 8.1).

    0 讨论(0)
提交回复
热议问题