Re: How to register ActiveX control with VBA?



Hi,
it is not a good idea to do this from VBA, if you don't have controls installed, and your project has references to these controls - then VBA most likely fail
You have to register these controls during setup, or ask users to register using regsvr32.exe

--
Best regards,
___________
Alex Dybenko (MVP)
http://alexdyb.blogspot.com
http://www.PointLtd.com

"hstijnen" <hstijnen@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:B202FFF7-3E19-45B6-8677-161D72E2E630@xxxxxxxxxxxxxxxx
Hi,
I've developed an application with some activex control. Not all users have
this control installed / registered on their system. How can I check with
some VBA code if the control is available (see the list in the window Tools >
ActiveX Controls), and, when not, to register it? (i.o.w the proces that
happens when the button Register is pressed)

Thanks in advance,
Regards,
Henk

.