+ Reply to Thread
Results 1 to 8 of 8

How to find & remove unneeded activex control

  1. #1
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293

    How to find & remove unneeded activex control

    I have a spreadsheet with a set of macros. One of the macros used the Microsoft Calendar Control 11 to furnish a popup calendar. However, I have disable this by erasing the page code which referenced the control.

    I have given a copy of the spreadsheet to a coworker. Everything worked fine until she got Office 2010, at which point the macros quit working with the error message "Unable to find project or library." Using the VBA References dialog box, I have traced this issue to the fact that the Office 2010 installation on her computer does not have the Calendar Control 11 file. I went into the References dialog & tried to uncheck Microsoft Calendar Control 11, but I get an error message telling me it can't be deleted because it's in use. I've looked through my other macros & can find no references to it. The help box on the error message says to remove the control from the form & then uncheck the box. There are no forms listed in the project window.

    Can someone tell me how to find where this may be so I can delete it? While we could just install the control file on her computer, I'd really prefer to clean up the spreadsheet so I don't keep running into this every time I provide a copy to someone.

    Any help appreciated.

    ---GJ Case
    Last edited by gjcase; 04-04-2011 at 12:23 PM. Reason: Add SOLVED

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: How to find & remove unneeded activex control

    Hello gjcase,

    While you removed the control, presumably from the worksheet, did you also remove any event code fragments on the worksheet it was attached to? If you still can't find the problem, post the workbook so it can be reviewed.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293

    Re: How to find & remove unneeded activex control

    Leith:

    I'm fairly certain I have done so, but it's a good suggestion. I may try selectively deleting Modules on a copy of the spreadsheet until the issues goes away... Is it possible there's a form still out there which would not show up in the project window?

    GJC

  4. #4
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293

    Re: How to find & remove unneeded activex control

    Okay, I narrowed this down to one sheet. If I delete the sheet, the Calendar Control no longer shows up on the Reference list. However, I can't find where it is used.

    I copied the spreadsheet and deleted all other sheets, all modules, all objects on the sheet, the page code, and finally all the data on the sheet. No luck.

    I'm attaching the now-blank file. If anyone can figure out where the Calendar Control is used, I would appreciate knowing where it is. I really don't want to reconstruct the sheet to correct this issue.

    GJC
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: How to find & remove unneeded activex control

    Calendar1 is listed in the pull down menu in the VBA editor for that sheet. Not sure how to delete it out though.
    Attached Files Attached Files
    Last edited by jwright650; 04-04-2011 at 11:38 AM. Reason: added screen shot
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  6. #6
    Forum Contributor
    Join Date
    08-08-2005
    Location
    Kansas, USA
    MS-Off Ver
    2016
    Posts
    293

    Re: How to find & remove unneeded activex control

    Thanks for the response! I just found that & deleted it using Sheet6.Calendar1.Cut.

    GJC

  7. #7
    Registered User
    Join Date
    09-17-2012
    Location
    Bosnia
    MS-Off Ver
    Excel 2012
    Posts
    1

    Re: How to find & remove unneeded activex control

    Any suggestion for me? I am also has same problem like you, but your fix doesn't work for me any help with that activex control? Something like videocap ?
    Last edited by Mony; 09-20-2012 at 10:49 AM.

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: How to find & remove unneeded activex control

    Mony,

    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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