+ Reply to Thread
Results 1 to 3 of 3

How to Set the Maxlenght on a cell with Macro

  1. #1
    Registered User
    Join Date
    11-28-2008
    Location
    Palembang
    Posts
    66

    How to Set the Maxlenght on a cell with Macro

    Hello bos, How to Set the Maxlenght on a cell with Macro ?
    i want set the maxlenght on cell A5 is 5 digits and only numeric.

    thank's before..

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,624

    Re: How to Set the Maxlenght on a cell with Macro

    Try the macro recorder. Select Settings, Allow: Whole number, Data between:
    Minimum: 10000, Maximum:99999
    Ben Van Johnson

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: How to Set the Maxlenght on a cell with Macro

    This can be done with data validation.

    go data validation, whole number, less than or = to, 99999

    hope this helps

+ 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