+ Reply to Thread
Results 1 to 5 of 5

Update Cell Value when ComboBox value is changed

  1. #1
    Registered User
    Join Date
    02-13-2015
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    34

    Update Cell Value when ComboBox value is changed

    Hi all,

    This should be a nice easy one for you gurus, as long as I can hopefully explain what I'm after.....

    I have a Userform with 2 x checkboxes on the left and 2 x comboboxes on the right. By default, the checkboxes are unticked and the comboboxes have "Not Applicable" written in them.

    Now, I want the user to tick the box if it is applicable, then choose the combobox value which will update the cell accordingly. Unfortunately, once you have ticked the checkbox, it displays "Not Applicable" but won't update the cell if I make a different choice in the combobox.

    Unticking, then re-ticking the box updates the value in the cell, but I can't expect the user to know this.

    In other words, how can I get the combobox to update the cell whenever a different choice is made? (dynamic choice, per se?)

    Here is my very basic code:

    Please Login or Register  to view this content.
    Please be gentle, I'm very new to this!

    Thanks.
    Last edited by frostii; 12-30-2016 at 02:57 AM. Reason: Edited for clarity.

  2. #2
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Update Cell Value when ComboBox value is changed

    Hi,
    You probably need some event of combobox.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-13-2015
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    34

    Re: Update Cell Value when ComboBox value is changed

    Hi,
    Sorry for my incompetence, but what do you mean?
    I was thinking of a recalculation of sorts when I hit an OK button, something like that. Is that what you mean? Any code would be appreciated......

  4. #4
    Valued Forum Contributor kasan's Avatar
    Join Date
    07-22-2009
    Location
    Riga, Latvia
    MS-Off Ver
    Excel 2010
    Posts
    680

    Re: Update Cell Value when ComboBox value is changed

    As I understood your need - when value in combobox is chosen - this value should be represented in a cell.
    Here is small example.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-13-2015
    Location
    Brisbane, Australia
    MS-Off Ver
    2016
    Posts
    34

    Re: Update Cell Value when ComboBox value is changed

    Thanks for the reply.
    I have decided against using both checkboxes and comboboxes. Only the comboboxes are really required.
    I have adjusted your code above to suit, thanks very much.
    Marked as SOLVED.

+ 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. ComboBox values source being changed based on another combobox selection in a UserForm
    By stephenanderson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-08-2016, 11:12 PM
  2. [SOLVED] Update Cell Value when List item is Changed
    By JaredAndrewDaniel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2015, 08:47 AM
  3. [SOLVED] Excel Header Update when specific cell changed
    By synergyx26 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2014, 10:15 AM
  4. [SOLVED] Automatic update of a cell every time another one is changed
    By Romoluzzi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-04-2013, 09:52 AM
  5. Replies: 21
    Last Post: 03-14-2013, 07:33 AM
  6. [SOLVED] Change event to Add or update comment with input box when cell in a range is changed
    By fratello in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-29-2012, 06:40 AM
  7. Cell update based on combobox choise
    By tim5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2011, 03:12 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