+ Reply to Thread
Results 1 to 3 of 3

OCX and DLL References Missing

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    OCX and DLL References Missing

    Hi everyone.
    I created an Excel file with a bunch of VBA programming back in 2013. It was never used but now we are brushing off the dust.
    I'm not a strong programmer but can get around with a little direction. I have not looked at VBA since 2013 and I'm getting old and can't remember what I did yesterday.

    I'm getting a few code errors that I'm sure are related to references.
    I left myself a few notes of the required references but I can't seem to find them under VB editer/tools/references.

    My notes say...
    1. Macros must be enabled.
    2. OCX and DLL References
    • Open VB editor, Tools, References
    • Required references are:
    Visual Basic for Applications
    Microsoft Excel 14.0 Object Library
    OLE Automation
    Microsoft Forms 2.0 Object Library
    Microsoft Office 14.0 Object Library
    Ref Edit Control
    Microsoft Windows Common Controls-2 6.0 (SP6)
    Microsoft Scripting Runtime
    3. On Windows XP computers Microsoft Windows Common Controls-2 6.0 (SP6)
    is sometimes missing. This may show up as missing in VB editor/tools.references or it may be seen execution errors. Editing the event edit for will cause the date picker field to disappear.
    • Copy mscomct2.ocx to c:\winnt\system32
    • From command line run “regsvr32 c:\winnt\system32\mscomct2.ocx”
    4. On Windows 7 computers Microsoft Windows Common Controls-2 6.0 (SP6)
    is sometimes missing.
    • Copy mscomct2.ocx to c:\windows\syswow64
    • From command line run “regsvr32 c:\winnt\system32\mscomct2.ocx”



    Any ideas where I can find these or if they are replaced by something else.
    I can't tell you what version of Excel we were on when this was created.
    We are currently using Office 2010 and I think Office 360.

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,085

    Re: OCX and DLL References Missing

    I've come across various issues with the sp6 common controls, including occasions where they are there and registered but still show as missing.

    Solution I found was to dereigister MSCOMCTL and remove it from SysWOW
    The copy the attached MSCOMCTL and MSCOMCTL2 to SysWOW
    Then register MSCOMCTL

    I've attached the files.
    Keep the original files in case this doesn't work though.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    06-26-2013
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: OCX and DLL References Missing

    Thanks for the information. I'll give it a try.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Missing references
    By kieranm105 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-15-2018, 06:05 AM
  2. How to fix missing references using VBA
    By ravikiran in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-06-2017, 10:58 AM
  3. [SOLVED] Missing references VBA project
    By Sintek in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 02-12-2017, 02:59 PM
  4. Missing:RefEdit Control in the References
    By Arunkumark in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2012, 11:42 AM
  5. Tools...References shows "MISSING:" in front of 2 references
    By Mike Jamesson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-19-2005, 02:05 PM
  6. [SOLVED] Help With Missing References
    By PC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-28-2005, 09:05 AM
  7. Checking for missing references
    By Fred in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2005, 05:19 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1