Click here to Skip to main content
15,889,266 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

%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
 
Share this answer
 
Comments
Koppelgaard 6-Mar-15 9:45am    
Great it worked - thanks :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900