+ Reply to Thread
Results 1 to 4 of 4

Mandatory input box?

  1. #1
    Registered User
    Join Date
    02-06-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    46

    Mandatory input box?

    I was wondering if there were a way to make the following code mandatory. I thought the end would do it but the system seems to substitute in a generic desk code if none is entered.

    Please Login or Register  to view this content.
    Last edited by bobaftt; 03-06-2009 at 09:18 AM. Reason: code tags

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Mandatory input box?

    Perhaps along the lines of:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-06-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2007
    Posts
    46

    Re: Mandatory input box?

    well it has to accept alpha characters as the desk code is an individuals initials

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Mandatory input box?

    Perhaps you need to rephrase your InputBox statement on that basis.

    For more info. on Application.InputBox types check out: http://msdn.microsoft.com/en-us/libr...ffice.11).aspx

    You can employ a similar approach to that already outlined where you check the LEN of the entered string to check it is 3 chars and if not prompt the user (with option to Exit if preferred).

+ 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