+ Reply to Thread
Results 1 to 6 of 6

Combo Box item change cell

  1. #1
    Registered User
    Join Date
    04-21-2017
    Location
    Romania
    MS-Off Ver
    2013
    Posts
    5

    Combo Box item change cell

    Hello, so I'm smashing my head into the wall with a simple task that I can't find the solution to.
    I've made a combo box with next 2 words in it: "Yes" , and "No". When I choose 'Yes' I want a cell to be changed to 0. When I choose 'No' I want a cell to be changed to 0.15 .

    Would appreciate any type of help..

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Combo Box item change cell

    What kind of a combo box is it? Active X, Form, Data Validation?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    04-21-2017
    Location
    Romania
    MS-Off Ver
    2013
    Posts
    5

    Re: Combo Box item change cell

    It's Active X this one. I like this or normal Form. Even though I don't know the difference

    Here it's a sample of what i'm trying to achieve , when I pick 'yes' I want the value of 'Auction List' to be changed to '0.15' , and when it's 'No' to '0'
    I keep trying with some macros but I can't find a macro that would work for me..
    Attached Files Attached Files
    Last edited by cristhe; 04-21-2017 at 05:44 PM.

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Combo Box item change cell

    The secret to Active X controls is that you have to link them to the spreadsheet.
    - Go to the Developer Ribbon
    - Enable Design Mode
    - Select the combo box.
    - Right click and select properties.
    - Type in the name of the cell you want to link to (I chose G11)
    - Close the properties dialog box
    - Exit Design Mode.

    Now you can use the linked cell like any other cell in a formula.

    A somewhat easier method would be to use the list type of data validation. Then you can use the cell itself. However, one issue with data validation is that if the user copies and pastes something into the cell, they can delete the data validation. Active X requires an additional step, but it is more difficult to get around the validation.
    Attached Images Attached Images
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-21-2017
    Location
    Romania
    MS-Off Ver
    2013
    Posts
    5

    Re: Combo Box item change cell

    thank you very much it worked!!

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Combo Box item change cell

    Hello cristhe,

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Thanks.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [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. VBA Userform combo box - need to enable user to add new item if not listed in combo box
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2015, 07:25 PM
  2. if cell a contains specific item then change cell h to suit
    By cfinch100 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-08-2014, 03:07 PM
  3. Populate Combo box 2 based on Selected item in Combo box 1
    By Vasu_XL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2014, 07:45 AM
  4. Replies: 4
    Last Post: 06-13-2013, 06:50 AM
  5. Making The Last Combo Box Item Always The Selected Item
    By abduljaleel.mca in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2013, 10:31 AM
  6. [SOLVED] trying to get cell location of an item selected in a combo box
    By dosage11 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-28-2012, 01:54 AM
  7. Using linked cell to change value in combo box
    By eugene in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-09-2006, 12:25 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