+ Reply to Thread
Results 1 to 3 of 3

VBA to hinder users from entering invalid entries when using drop-down lists

  1. #1
    Forum Contributor
    Join Date
    05-03-2013
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 365
    Posts
    141

    VBA to hinder users from entering invalid entries when using drop-down lists

    hi there!

    I need to create a drop/down list in one column. I was wondering if it is possible to use VBA in order to not allow users of my files to continue to the next cell on the column when they have entered an invalid entry that is not included on my list options. I am using Excel 2003, but the system just has an error alert message that tells users when they have done this mistake. This error alert message asks if the user should continue (to the next cell on the column), and it shows 3 options: Yes, No, and Cancel. If the user chooses Yes then he will go to the next cell, and the invalid entry will remain there on the previous cell without correction, which I don't want at all. I want users to find obstacles when they have incurred in this kind of error. I am using the information on this column to create a pivot table along with other columns, so I don't want garbage to be put into the pivot because of stubborn users who in spite of the error alert message insist to continue to the next cell. I hope I have made myself clear to you all.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: VBA to hinder users from entering invalid entries when using drop-down lists

    Change the DV settings from Warning to Stop.

    http://screencast.com/t/jAcUTCFs
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    05-03-2013
    Location
    Costa Rica
    MS-Off Ver
    MS Excel 365
    Posts
    141

    Re: VBA to hinder users from entering invalid entries when using drop-down lists

    Thanks, JBeaucaire! How simple it was!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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