+ Reply to Thread
Results 1 to 2 of 2

Data validation on an input box

  1. #1
    Registered User
    Join Date
    06-05-2007
    Posts
    81

    Data validation on an input box

    Hello all! I think this is an easy one but multiple attempts on my own are getting me nowhere. I just need to make the user enter a new worksheet name that ends with the characters "SD". I think I'm close but code stops on the ???? below. I tried newname, InputBox . . . And I'm not sure what the "1" means.. Is that how many places on the right? Should it be "2" for "sd"?

    Please Login or Register  to view this content.
    Also, I need something on the end that returns to the input box if they don't comply with the naming requirement.


    Thanks in advance!! Most helpful people here!
    Last edited by pprseller; 11-09-2009 at 05:35 PM. Reason: Not right yet . . .

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388

    Re: Data validation on an input box

    The following code would work:
    Please Login or Register  to view this content.
    You might want to think about how to handle these possibilities:

    1. the sheet name already exists
    2. an invalid sheet name is entered, e.g. 'a//sd' passes the test but is an invalid sheet name
    3. cancel is clicked
    Last edited by T-J; 11-10-2009 at 08:41 AM.

+ 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