Register an ActiveX control

S

Scott

I know I can manually register an activeX control manually using
Regsvr32.exe /s "myActiveXCtrl.ocx".

Is there a way to register an ActiveX control within Access using VBA?

Any input greatly appreciated.
 
N

Nikos Yannacopoulos

Scott,

This example registers mscomct2.ocx (file already exists in the
Windows\System32 folder):

MyCtl = "C:\Windows\System32\mscomct2.ocx"
Shell "regsvr32.exe /s " & MyCtl

HTH,
Nikos
 
N

Nikos Yannacopoulos

Not that I know of. I usually just check for the mere existence of the
control, assuming that if it's there it will be registered, and then
copy it over and register if not found. Yet, I don't suppose it would do
any harm to re-register an already registered control, if you doubt the
assumption above.

Nikos
 
Top