+ Reply to Thread
Results 1 to 7 of 7

Creating Drop Down List

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    09-21-2007
    Posts
    196

    Limiting length of cell contents or alerting to length of cell

    I am trying to write produce a simple spredsheet for writing school reports. In column G of my spreadsheet the main comment is entered and this can be a maximum of 400 characters. Is there any way of limiting the amount that can be put into a cell or if not is there a simple macro I could use to make the cell go red if the length is over 400?

    Jack
    Last edited by VBA Noob; 12-30-2007 at 09:41 AM.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try

    Data > Validaion > Setting Tab > allow (dropdown) > Text length > set as required

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can use Data Validation to specify a inimum & a maximum text length. You can also add an error message.

    From the Data menu select validation. In the settings tab find Text length in the allow drop down.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Contributor
    Join Date
    09-21-2007
    Posts
    196

    Creating Drop Down List

    I want to create a drop down list in cell B3 which means that you can only type the numbers 1,2,3,4 or 5. Is there an easy way to do this and to copy the list for more cells in the column? I also need to have another list for F3 which can have A*,A,B,C,D,E. Can I use the came method to do this?

    Jack

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Is this relating to your last post

    http://www.excelforum.com/showthread.php?t=628237

    VBA Noob

  6. #6
    Forum Contributor
    Join Date
    09-21-2007
    Posts
    196

    Drop down lists

    Yes, Is is for the grades rather than the comment.

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Use either a delimted list

    http://www.contextures.com/xlDataVal01.html#Delimited

    or from a range

    http://www.contextures.com/xlDataVal01.html#Create

    If there not in the list they will get an error message which you can change

    http://www.contextures.com/xlDataVal04.html#Error

    VBA Noob

+ 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