+ Reply to Thread
Results 1 to 2 of 2

A macro to validate a text entry or a specific number of digits in a cell

  1. #1
    Registered User
    Join Date
    06-28-2012
    Location
    Boston, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    A macro to validate a text entry or a specific number of digits in a cell

    Hello

    I am working on writing a macro that will validate that a cell contains text (any text is acceptable) or 5 digit numeric entry, leading 0's are acceptable.

    I can get the text validation to work easy enough but I am having a lot of trouble getting the 5 digit validation to work.

    Any help is appreciated.

  2. #2
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: A macro to validate a text entry or a specific number of digits in a cell

    This will check the length of the txt and also if it is a number.

    Please Login or Register  to view this content.
    Last edited by GaidenFocus; 06-28-2012 at 03:31 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