An older post, but I believe Mr Rasm will still be able to guide further.

I have a folder of .ocx file right inside the directory where my Excel(.xlsm) file exists. I am using widdows 10 64-bit and also Excel 2019 64-bit
On open event of my Excel file I want to check if the OCX file already registered? and if not register it.

Can you please guide me how can I achieve this? as my ocx file is not stored at the directory where it will be registered.

I hope this makes sense.

Best Regards
Imran Bhatti