+ Reply to Thread
Results 1 to 6 of 6

set a default value in dropdoen list data validation

  1. #1
    Registered User
    Join Date
    03-12-2013
    Location
    Thiruvananthapuram
    MS-Off Ver
    Excel 2007
    Posts
    42

    set a default value in dropdoen list data validation

    I have a excel work book where in sheet1 cell a1 i create a data validation drop down list for an user to enter datas therein. I want one of the value in the drop down list as default value when a user opens the work book every time. some tips to succeed my aim.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: set a default value in dropdoen list data validation

    Hi,
    I think the code you want is:
    Please Login or Register  to view this content.
    But it must be behind the Workbook Module. See the attached. Change your name to one of the valid entries in A1.
    Event Workbook Open set A1.xlsm
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    03-12-2013
    Location
    Thiruvananthapuram
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: set a default value in dropdoen list data validation

    Sir this is not the one i am looking for
    I will explain. In cell A1 when a user click mouse a drop down list populates for eg .say numerics 0 to 10 serially displayed as drop down list. The user can select one of them in Cell A1. I want in cell A1 the first value of drop down list say 0 as a default value every time the user opens the work book so that initial value be 0 and the user can select his own choice from the dropdown list.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,594

    Re: set a default value in dropdoen list data validation

    This proposed solution is based on a post made by JBeaucaire in this thread.
    Before applying the data validation, you can enter a formula into the cell to show the default value. In this case the list of possible values is in E2:E12 so the formula in A1 is: =E2
    When you open the workbook "0" will appear in A1, but you can use the DV drop box to change the value. When you do, the formula that was there is now gone for good, so in order for the user to get a "0" in cell A1 the next time s/he opens the file, the "Don't Save" option will have to be chosen when the file is closed.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    03-12-2013
    Location
    Thiruvananthapuram
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: set a default value in dropdoen list data validation

    Sir I tried your tip and it works as I intended. thanks

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,594

    Re: set a default value in dropdoen list data validation

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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] Setting default value in Data Validation List
    By frenurks in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-27-2015, 01:05 PM
  2. [SOLVED] make list in Data Validation default to top value?
    By zhunter71 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2015, 03:36 AM
  3. [SOLVED] Data validation list default value disappears!
    By ShoshanaM in forum Excel General
    Replies: 5
    Last Post: 12-05-2012, 07:18 PM
  4. WHERE IS THE CAVALRY?: data validation list default mysteriously disappears
    By ShoshanaM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-11-2012, 12:01 PM
  5. Data Validation > List > Default Entry?
    By BuRn3R in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-26-2009, 06:49 PM
  6. How to force a Default sort for a validation list
    By scott56hannah in forum Excel General
    Replies: 0
    Last Post: 04-17-2006, 10:10 PM
  7. [SOLVED] Default Cell Value with Validation Drop-Down List
    By Dave H in forum Excel General
    Replies: 0
    Last Post: 01-30-2006, 05:00 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