Excel comport使用MSCOMM32.OCX [英] Excel comport using MSCOMM32.OCX

查看:110
本文介绍了Excel comport使用MSCOMM32.OCX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Excel的私密版本中,我们可以使用VBA和MSCOMM32.OCX通过Excel comport进行通信。

现在我遇到了问题。



我在batfile上用来注册MSCOMM32.OCX。

内容如下:



我有一个旧的excel文件,其中包含一个内有MSCOMM对象的表单。

当我打开excel文件时,我收到以下消息:

表单:无法加载对象,因为它在此计算机上不可用。



当尝试从工具箱中的表单中放置一个新的MSCOMM对象时,我收到以下消息:

对于特定操作,主题不受信任



可能是什么原因?



蝙蝠文件:

复制MSCOMM32.ocx %windir%\ system32

暂停

regsvr32%windir%/ system32 / MSCOMM32.ocx

暂停

In privious versions of Excel have been able to communicate through the Excel comport using VBA and MSCOMM32.OCX.
Now I have problems.

I use at batfile to registrate the MSCOMM32.OCX.
The content is listed below.

I have an old excel file containing a form with an MSCOMM object inside.
When I open the excel file, I get the following message:
Forms: "Could not load an object because it’s not available on this machine."

When try to place an new MSCOMM object in the form from the toolbox , I get the following message:
"The subject is not trusted for the specific action"

What can be the reason?

Bat file:
copy MSCOMM32.ocx %windir%\system32
pause
regsvr32 %windir%/system32/MSCOMM32.ocx
pause

推荐答案

%windir%\ system32将包含64位版本的regsvr32.exe ...



您需要使用%windir%\ syswow64版本(32位)注册OCX
%windir%\system32 will contain the 64-bit version of regsvr32.exe ...

You need to use the the %windir%\syswow64 version (32-bit) to register the OCX


这篇关于Excel comport使用MSCOMM32.OCX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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