找不到Microsoft Forms 2.0对象库或FM20.DLL [英] Can't find Microsoft Forms 2.0 Object Library or FM20.DLL

查看:263
本文介绍了找不到Microsoft Forms 2.0对象库或FM20.DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的Excel 2016项目(Windows 7)中,我想使用剪贴板:

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

Dim DataObj As New MSForms.DataObject
DataObj.GetFromClipboard

但是我在第一行代码中遇到了此编译器错误:

But I've got this compiler Error at the first line of code:

未定义用户定义类型

User-defined type not defined

所以我想添加对Microsoft Forms 2.0对象库的引用,但是我的整个计算机上都没有FM20.DLL文件(我已经用cygwin搜索了Explore和find).

So I would like to add the reference to the Microsoft Forms 2.0 Object Library but I have no FM20.DLL file on my entire computer (I have searched through explore and find with cygwin).

我希望可以在下面的屏幕截图中看到它,但是找不到.

I expect to see it as in the screenshot below, but I can't find it.

如何使其显示?

推荐答案

来自此旧知识基本文章我的猜测是该DLL可能仅包含在Office的较早版本中?这部分看起来很有希望:

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:

作为让最终用户安装Microsoft Office的替代方法, 您可以让他们免费下载并安装Microsoft ActiveX 控制面板,还安装Fm20.dll.欲获得更多信息, 请访问下面的Microsoft开发人员网络(MSDN)网站: http://msdn.microsoft.com/en-us/library/ms968493.aspx

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

但是,由于链接工具来自1997年,因此您需要在兼容模式"下运行其设置,方法是右键单击可执行文件并选择属性",然后单击兼容性"选项卡并选择"Windows" 在兼容模式下运行此程序:"下拉菜单中选择"95".然后以管理员身份运行它(这对于Windows 8.1来说适用于我).

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).

这篇关于找不到Microsoft Forms 2.0对象库或FM20.DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆