+ Reply to Thread
Results 1 to 3 of 3

If user types in a wrong value, then an error message pops up

  1. #1
    Forum Contributor
    Join Date
    05-19-2012
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    200

    If user types in a wrong value, then an error message pops up

    I have an array of Languages in: Range("C1:C100")

    The user types in a language in cell: "J4" then click NEXT BUTTON (runs a macro)
    If what he typed in does not match a language in the array, then an error message pops up saying: "That language is not supported. Please correct the language to continue."

    Here's the code where the error message needs to be added:
    Please Login or Register  to view this content.
    Thanks!
    Last edited by nenadmail; 08-10-2012 at 02:05 PM.

  2. #2
    Forum Contributor
    Join Date
    02-07-2012
    Location
    MIA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    429

    Re: If user types in a wrong value, then an error message pops up

    Why don't you use data validation for this?

    Select your cell on column J and go to Data, data validation, on allow choose list and then choose your Range("C1:C100"). It should limit the possible values of the cell.
    .?*??)
    `?.???.?*??)?.?*?)
    (?.?? (?.?
    Pichingualas <---
    ??????????????????????????

    Wrap your code with CODE TAGS.
    Thank those who helped you, Don't forget to add to their REPUTATION!!! (click on the star below their post).
    Please mark your threads as [SOLVED] when they are (Thread Tools->Mark thread as Solved).

  3. #3
    Forum Contributor
    Join Date
    05-19-2012
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    200

    Re: If user types in a wrong value, then an error message pops up

    Great that works too..

    Now I just thought of something else.... since it's the type of (dropmenu) that can be typed in. Is there a way it can correct the spelling or guide the person as he's typing it in...

    For example as soon as he types in "Eng" the rest of it is suggested as "English" ... kind of like how search engines work today...?

    English is just an example... but I'm talking about doing so for all the available languages????
    Last edited by nenadmail; 08-10-2012 at 02:53 PM.

+ 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