Solved

MsComm32.ocx need Licensed in vba.

Posted on 2001-09-08
3
1,281 Views
Last Modified: 2008-02-01
Hi.

I try to word with MsComm32.ocx in Excel - Vba.
I could insert form to excel, and could to add
  the control to toolbox with References -> Browse...
  but, when i try to add the control to the form,
  i get this ugly message :

  'The control could not be created because it is not
   property licensed.'

This is not happen with computer with Visual Basic.
  but i need to work with this control on computer
  that not have Visual Basic.

Please, try to help me.
Alon.
 
0
Comment
Question by:Alon1001
3 Comments
 
LVL 1

Expert Comment

by:dekeldate
ID: 6468370
You could try putting a valid MsComm32.ocx on the other machine by making a small program with the 'Comm Control', compilling it, creating a setup and instaling it on the other machine. This should install it correctly with all licences.

example
1.start a new project.
  make it an exe if you do not wany to write any code in it
2.give the project a reasonable name (e.g. addComm)
3.add the Microsoft Comm Control (Project -> components)
4.add the Comm control to the form (you might not need this step)
5.Compile the project (File -> Make addComm.exe)
6.If the Package and Deployment wizard is not available in the Add-Ins Menu then (Add-ns -> Add-Ins Manager... double click 'ackage and Deployment wizard' click 'K')
7.run the Package and Deployment wizard (Add-Ins - > Package and Deployment wizard) follow ithe instrutions.
8 Once completed install the package on the other machine/

Note: although this does not install VB on the other machine, it does install the VB Runtime files. If this is fine the above solution should make the MsComm32.ocx available to Word and Excel on the other machine.
0
 
LVL 50

Accepted Solution

by:
Ryan Chong earned 180 total points
ID: 6469834
Hi Alon1001,

try to register your MsComm32.ocx to your System folder before?

You can try this:

regsvr32 C:\Winnt\system32\Mscomct2.ocx 'For NT/2000

regsvr32 C:\Windows\system\Mscomct2.ocx 'For WinX

regards.
0
 

Author Comment

by:Alon1001
ID: 6512748
Mscomm32.ocx not mscomct2.ocx
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MsgBox 2 55
VB6 Compile Compatibility Issue 4 102
VBA/SQL - Connect to SQL server and pull data 4 110
Zip Folders Using Chilkat Routines 1 40
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question