+ Reply to Thread
Results 1 to 3 of 3

data validation in an input box

  1. #1
    Registered User
    Join Date
    11-28-2012
    Location
    Karnataka, India
    MS-Off Ver
    Excel 2007
    Posts
    48

    data validation in an input box

    i have created a macro that asks the user to input the name of the product they are going to work with, but there are only 4 products, so i want the user to be able to enter only these 4 products in the input box, how do i do that??
    because wenever they make a spelling mistake or the enter it in the wrong case the macro will trigger an infinite loop !

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: data validation in an input box

    Hi

    Post an excel file with the product names.
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: data validation in an input box

    Hi, Suraj3825,

    maybe you can work with Data/Validation in a cell on a worksheet and read the name of the product from there? Otherwise I would recommend a UserForm with either OptionButoons or a ComboBox for making the choice.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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