+ Reply to Thread
Results 1 to 6 of 6

Referencing an ActiveX combo box

  1. #1
    Registered User
    Join Date
    12-13-2014
    Location
    Boston, MA
    MS-Off Ver
    MS Office 2013
    Posts
    53

    Referencing an ActiveX combo box

    Hey guys,

    Haven't worked with ActiveX controls in a while so I'm a little rusty. I'm trying to figure out how to assign a "score" based on the users selection from the combo box. This score is saved and should update whenever the value in the combo box changes. Here's what I have so far but I can only get a score of "1" to show up.
    Please Login or Register  to view this content.
    Thanks in advance!

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Referencing an ActiveX combo box

    where is your output?
    Attached Files Attached Files
    Last edited by humdingaling; 05-29-2015 at 03:07 AM.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Referencing an ActiveX combo box

    You're better off not using ActiveX controls on worksheets at all. They're incredibly unstable have a look here https://www.google.co.uk/webhp?sourc...eet%20controls and by using them, you're asking for trouble.

    Forms controls are much more reliable - they're in the same dropdown as the ActiveX ones, but are designed for use on worksheets - so you don't run into any stability issues, you can do most of the same things with them too and you can use them without using code.

  4. #4
    Registered User
    Join Date
    12-13-2014
    Location
    Boston, MA
    MS-Off Ver
    MS Office 2013
    Posts
    53

    Re: Referencing an ActiveX combo box

    IB555.xlsmI've went ahead and changed over to form controls and built the project using a user form. I've attached the form for reference. The problem I'm running into now is that these scores will only sometimes populate the ranges I want them to. I know this should be an easy fix using debugging but for whatever reason I can't seem to figure it out.

  5. #5
    Registered User
    Join Date
    12-13-2014
    Location
    Boston, MA
    MS-Off Ver
    MS Office 2013
    Posts
    53

    Re: Referencing an ActiveX combo box

    Figured it out...There was an extra space in the "mostly" cell at the end causing the macro to completely jump over it in the if statement.

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Referencing an ActiveX combo box

    Glad you figured it out
    For your information for future questions
    your latest example is Userform Combobox which is different to Activex combo box and Form control (in which Kyle was referring to)

    https://support.office.com/en-za/art...rs=en-ZA&ad=ZA
    they each code slightly different to one another

    see attached how Form looks like
    there is minimal coding involved just some algebra work to figure out the decimals
    Attached Files Attached Files

+ 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. Code works with Combo Box-Form Control, but not with Combo box - ActiveX Control
    By nangys in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-01-2014, 08:51 AM
  2. Replies: 8
    Last Post: 12-26-2013, 02:23 PM
  3. ActiveX combo-box value depends on other combo-box value
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 09-27-2013, 05:24 PM
  4. [SOLVED] ActiveX combo box popularize
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-09-2012, 07:22 PM
  5. Population a Combo Box ActiveX
    By ABabeNChrist in forum Word Formatting & General
    Replies: 1
    Last Post: 09-10-2009, 03:49 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