+ Reply to Thread
Results 1 to 3 of 3

Combobox not working properly

  1. #1
    Registered User
    Join Date
    08-06-2015
    Location
    Köln, Deutschland
    MS-Off Ver
    2013
    Posts
    2

    Combobox not working properly

    Hi all,

    I have three comboboxes (active-x) on a worksheet (MS Office 2013). For each of them I have a "Private Sub ComboBox(1/2/3)_Change()" procedure.

    When I select a line from combobox1, then for each line of code in the change() code for combobox1 the procedures for combobox2 and combobox3 are executed.

    When I select a line from combobox2, then for each line of code in the change() code for combobox2 the procedures for combobox3 and combobox2 (the very one I clicked) are executed.

    When I select a line from combobox3, then for each line of code in the change() code for combobox3 the procedures for combobox3 (the very one I clicked) and combobox2 are executed.

    This seems to be a weird phenomenon.

    Does anyone have a clue what causes this behaviour?

    Any help will be greatly appreciated.

    Thank you in advance.

    Best regards

    Hans

    Additional question:

    From a previous version I seem to remember that there used to be a kind of menu tree structure for all the methods and properties for any object. How do I invoke this?

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Combobox not working properly

    Hans

    How are you populating the comboboxes?

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-06-2015
    Location
    Köln, Deutschland
    MS-Off Ver
    2013
    Posts
    2

    Re: Combobox not working properly

    Hi Norie,

    Thanks for your quick reply. The boxes are populated via named areas and the references are given in Properties.ListFillRange.

    Unfortunately I am not at my Windows PC. I am right now sitting at a Mac.

    The simple worksheet is about tracking activities. A command button inserts a line at the top of the sheet and populates cells with date and time. For the type of activity there are three comboboxes:

    - one for my own projects
    - one for projects I have to work on that are not my own
    - interruptions like phone calls, meetings etc.

    The code in the change() procedures is quite simple:

    - store the selected line of a combobox in the corresponding cell and clear the other two as in

    range ("f2").value = combobox1.value
    range ("g2"),value.clear
    range ("h2"),value.clear

    There isn't more to it.

    If it helps I can attach the workbook tomorrow.

    Thanks again for thinking into this.

    Best regards

    Hans

+ 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] More than and Less than not working properly
    By Alidamalang110 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-23-2015, 12:34 PM
  2. [SOLVED] Code not working properly
    By TomRet in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 02-01-2014, 04:16 AM
  3. [SOLVED] IF-THEN-ELSE not working properly
    By danex in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-02-2013, 11:15 AM
  4. VBA not working properly
    By stevemills04 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2013, 02:56 PM
  5. [SOLVED] Can't get combobox to properly fill data based on another combobox.
    By Orestees in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-15-2012, 05:22 PM
  6. Protect/Unprotect Procedure with Combobox not working properly
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-11-2011, 04:43 PM
  7. UDF not working properly
    By demuro1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-09-2008, 04:36 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