Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default VB to register an Active - X control

Hi Group.

I am looking for some help creating some code that will
register a specfic active-x control.

Assuming that a hundred employee's each have a new
calendar control (axtive - x) saved to a specific file
loczation.

I want to have an excell template run some code to
register the control when it is opened so that the control
will be availible for use on that form.


If possible the code will first check to see if it is
already registered and then only if itr is not it will
register the conrol . This way every time the user opens
the control it won't re-register the control.

Ideas anyone, Thanks

Kelly
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 77
Default VB to register an Active - X control

Hi

Assuming it is mscal.ocx, Then copy it to the windows\system or
windows\system32 dir as required.

FileCopy "mscal.ocx", "C:\windows\system"
FileCopy "mscal.ocx", "C:\windows\system32"

then use shell to register it.

Shell ("regsvr32.exe mscal.ocx")

HTH

Ken M


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default VB to register an Active - X control


-----Original Message-----
Hi

Assuming it is mscal.ocx, Then copy it to the

windows\system or
windows\system32 dir as required.

FileCopy "mscal.ocx", "C:\windows\system"
FileCopy "mscal.ocx", "C:\windows\system32"

then use shell to register it.

Shell ("regsvr32.exe mscal.ocx")

HTH

Ken M


.Thanks for the reply Ken but I'm afraid I'm not sure

what you mean. First I should clarify that my question was
asking for help using vb code to register the control. You
are right it is mscal.ocx but I need to install and
register it in over 100 PC's.

I have figured out how I can place this control in a
specific folder in each PC with the use of an auto-sync
routine but now I want to be able to add some code to a
template so that when any of the users try to open the
template the code will register the control.

Sorry I am unfamiliar with "shell"

Kelly
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ACTIVE X CONTROL? Jase Excel Discussion (Misc queries) 1 May 9th 08 12:49 AM
Difference between a Forms Control verus Active-X Control funGT350 Excel Discussion (Misc queries) 6 May 6th 08 11:20 PM
how to set active x control sharlie Excel Discussion (Misc queries) 0 March 30th 06 01:27 AM
template for document control/ register as used by architects etc neilrilesconstructions Excel Discussion (Misc queries) 1 January 20th 06 12:17 AM
Active X Control Anand CS Excel Programming 0 July 9th 03 05:02 AM


All times are GMT +1. The time now is 10:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"