+ Reply to Thread
Results 1 to 4 of 4

Input Box Valdation

  1. #1
    Registered User
    Join Date
    07-30-2007
    Posts
    61

    Smile Input Box Valdation

    Hi

    If I want the user to only enter a percentage into an input box what is the best way to do this.


    Kind regards

    Keith

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    In what format will it be entered?

    As a number followed by %
    just as a number without the %
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    07-30-2007
    Posts
    61
    thanks

    as a number followed by a %

  4. #4
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    You will need to test for several different entries

    Please Login or Register  to view this content.
    In the above code a space between the number & the % symbol will test as a valid entry. A space anywhere else will not pass the test

    If you want to test for a space between the number & the % then also use
    Please Login or Register  to view this content.
    before the End With command

+ 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