+ Reply to Thread
Results 1 to 3 of 3

Text box max length

  1. #1
    eb1mom
    Guest

    Text box max length

    After Max length in a cell is reached, is there anyway to make excel
    automatically tab to the next cell down and allow data entry to continue?
    Thanks

  2. #2
    Forum Contributor
    Join Date
    12-12-2005
    Posts
    667

    Text box max length

    You could do this if you used a form to enter the data and every keystroke was monitored.
    However the best you can do is to have this code in the sheet (or worksheet)module:
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    l = Len(ActiveCell.Text)
    r = ActiveCell.Row
    c = ActiveCell.Column
    If l > 255 Then
    Cells(r + 1, c).Select
    End If
    End Sub
    Unfortunately the data has to be entered before changing cells, the excess of 255 characters will still be ignored and you won't be able to edit that cell anymore!
    Bad luck!
    Best regards,

    Ray

  3. #3
    eb1mom
    Guest

    Re: Text box max length

    Thank-you that will help me get things sorted out. eb1mom



+ 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