+ Reply to Thread
Results 1 to 6 of 6

Combobox Error Message

Hybrid View

  1. #1
    Registered User
    Join Date
    04-20-2007
    Posts
    3

    Question Combobox Error Message

    I have a combobox that launches UserForms. When one particular form is selected in the combobox, the form will not open and it generates the following error message: ‘Missing: Crescent Enhanced Edit Controls’. I don't get this error message on my machine, but when I load the workbook on someone else's machine, they get the error message.

    I know how to correct the problem on the user's machine by going into the References box.

    My problem is that I don't know what I did in the programming/code on that particular UserForm to generate this error.

    Has anyone every encountered this?

  2. #2
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    It was probably already an add in that you had selected on your machine when you saved your workbook, so moving the program to another machine that doesnt have it would evoke the error.

    Regards,
    Simon

  3. #3
    Registered User
    Join Date
    04-20-2007
    Posts
    3
    Thanks Simon.

    But why wouldn't this occur with all of the other UserForms? It only happens with one particular form. All of the other UserForms that fire off of the combobox work fine.

    I did take that particular form and add some checkboxes to it and I added a couple of listboxes with some simple code to move objects from one listbox to the other - stuff that's on the other forms.

    I did something unique on that form. Actually, I changed one page of a mulitipage form on the form in question.

    My only thought was to rebuild that page/code and see what happens.

    If you have any other thoughts or suggestions??????

    Thanks again

  4. #4
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    Can you supply the code you are using for your userforms?

    Regards,
    SImon

  5. #5
    Registered User
    Join Date
    04-20-2007
    Posts
    3
    The following is the code I added that may have created the problem:
    1. This creates the list of selected items from the combobox
    Private Sub cmdbtncadmiaddsymptoms_Click()
    Dim lItem As Long
        For lItem = 0 To lstbxcadmisymptoms.ListCount - 1
            If lstbxcadmisymptoms.Selected(lItem) = True Then
                Sheet3.Range("L15").End(xlUp)(2, 1) = lstbxcadmisymptoms.List(lItem)
                lstbxcadmisymptoms.Selected(lItem) = False
            End If
        Next
    End Sub
    2. This code just makes the listboxes visible when a checkbox is checked:

    Private Sub CheckBox18_Click()
    If CheckBox18 = True Then
    lblcadmiacutesymptoms.Visible = True
    lstbxcadmisymptoms.Visible = True
    cmdbtncadmiaddsymptoms.Visible = True
    cmdbtncadmiclearsymptoms.Visible = True
    lstbxcadmisymptomsselected.Visible = True
    cmbobxsymptomhistory.Visible = True
    lblcadmioccurrancehistory.Visible = True
    Else
    lblcadmiacutesymptoms.Visible = False
    lstbxcadmisymptoms.Visible = False
    cmdbtncadmiaddsymptoms.Visible = False
    cmdbtncadmiclearsymptoms.Visible = False
    lstbxcadmisymptomsselected.Visible = False
    cmbobxsymptomhistory.Visible = False
    lblcadmioccurrancehistory.Visible = False
    Sheet3.Range("L2:L10") = ""
    End If
    End Sub
    Last edited by Simon Lloyd; 04-20-2007 at 04:05 PM.

  6. #6
    Forum Expert Simon Lloyd's Avatar
    Join Date
    03-02-2004
    Location
    locked in the cage
    MS-Off Ver
    All the ones my homepage shows
    Posts
    3,161
    I will take a look at this tomorrow, when adding code to a thread please wrap the code by highlighting all of it and then clicking the # in your thread window.

    Failure in the future code lead to your post being deleted.

    I have wrapped your code for you this time.

    Regards,
    Simon

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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