Solved

MsComm32.ocx need Licensed in vba.

Posted on 2001-09-08
3
1,255 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
Comment Utility
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 49

Accepted Solution

by:
Ryan Chong earned 180 total points
Comment Utility
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
Comment Utility
Mscomm32.ocx not mscomct2.ocx
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now