View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ken Macksey Ken Macksey is offline
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