+ Reply to Thread
Results 1 to 3 of 3

Validate input of user, Integer required

  1. #1
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226

    Validate input of user, Integer required

    Hi,
    The user is asked to enter an integer into an InputBox.
    I'd like to validate the input.
    The input will be stored in variable Tsk.
    Tsk should be a positive integer smaller than another variable, MaxTsk.
    Dependent of the validation I will let the procedure run forward or go back to the InputBox again.
    Any help is appreciated.
    Gabor

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good afternoon Gabor

    This routine will do what you want. It will need a bit of altering, for the puposes of demostration, it sets maxtsk to 10 and reports the inout back to the user. The routine runs again of any of the criteria are not fulfilled :
    Please Login or Register  to view this content.
    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor Gabor's Avatar
    Join Date
    02-15-2004
    Location
    Székesfehérvár, Hungary
    MS-Off Ver
    xl2016
    Posts
    226
    Hi Dominic,

    Tested, works just fine.
    Thanks

    Gabor

+ 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