+ Reply to Thread
Results 1 to 4 of 4

Change value of cell with validation list

  1. #1
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365 MSO (16.0.10730.20264) 32-bit
    Posts
    160

    Change value of cell with validation list

    Hi All.

    I have a cell that uses a validation list. If the user picks one of the values in the dropdown list, and I dont like it, I want to tell them they cannot choose that value, and using VBA set the value back to what it was or to something else in the list.

    Thanks.

    Steve
    Harrisburg, PA USA

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Change value of cell with validation list

    Why let them pick it in the first place?

    Use the sheet's Change event to do it. I would need details to provide specific code.

  3. #3
    Forum Contributor
    Join Date
    10-02-2013
    Location
    Harrisburg, PA
    MS-Off Ver
    Office 365 MSO (16.0.10730.20264) 32-bit
    Posts
    160

    Re: Change value of cell with validation list

    Hi Ken.

    I have a blank form for them to fill in. In the valdation list, The top (default) value is "Please Select". Once they select something else, no problem. But if I have these 5 validation list in column A1, B1, C1, D1, E1, I don't want them to make a selection in A1, Skip B1, and then do C1. They must start at the left and move right without skipping any for the calculations to be correct.

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Change value of cell with validation list

    In that case, the SelectionChange event might be best.

    Right click the sheet's tab, View > Code, and paste:
    Please Login or Register  to view this content.

+ 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. Change cell value when validation list is changed
    By Typicalalex1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-11-2014, 01:40 PM
  2. Replies: 3
    Last Post: 08-31-2013, 03:09 AM
  3. Change cell value that has data validation from list in a separate sheet with macro?
    By jimmyjackjoejames in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-28-2013, 11:31 AM
  4. Change Validation list given the text in another cell
    By spoursy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-07-2012, 11:35 AM
  5. monitor cell that uses data validation list for change
    By rgarber50 in forum Excel General
    Replies: 2
    Last Post: 08-01-2005, 01:15 AM

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