Results 1 to 3 of 3

Thread: Register / De-register OCX Files Using VBA

  1. #1
    Senior Member
    Join Date
    Apr 2011
    Posts
    190
    Rep Power
    14

    Register / De-register OCX Files Using VBA

    This forum allows you to upload files directly - so I have decided to share some of the little tools I use here and there. The XLSM file here is to register OCX files - you may simply do this from the old DOS prompt. But I always forget how to do that. So I use this tool. I found it on the net - made very few changes and voila - it worked.

    I have recently switched to Windows 7 - so you will see that my OCX files reside in c:\Windows\SysWOW64 - however I have remmed out the older system - so just change code to fit the path your need.

    I hope others will upload these small routines - they sure help when you like me is just trying to learn
    Attached Files Attached Files

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Rasm, thanks for another helpful piece of code

  3. #3
    Junior Member
    Join Date
    Dec 2020
    Posts
    2
    Rep Power
    0
    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

Similar Threads

  1. Alternative to MSCOMCTL.ocx
    By vlc in forum Excel Help
    Replies: 7
    Last Post: 07-19-2013, 10:41 PM
  2. Splitting and merging files with VBA
    By tryingtocode in forum Excel Help
    Replies: 1
    Last Post: 05-23-2013, 10:37 PM
  3. Running a VBA in all excel files
    By msiyab in forum Excel Help
    Replies: 3
    Last Post: 12-26-2012, 01:35 PM
  4. Fixed asset Register
    By Howardc in forum Excel Help
    Replies: 1
    Last Post: 11-14-2012, 10:20 AM
  5. Count Files In A Folder VBA
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 05-07-2011, 10:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •