#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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!


--
raypayette


------------------------------------------------------------------------
raypayette's Profile: http://www.excelforum.com/member.php...o&userid=29569
View this thread: http://www.excelforum.com/showthread...hreadid=565026

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Text box max length

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
limit text length after importing data Jean N. Excel Worksheet Functions 2 June 7th 06 09:31 PM
truncating text strings of different lengths Funkey Excel Discussion (Misc queries) 7 March 29th 06 07:22 PM
How change dimensions of data label text box in pie chart? Gouden Willem Charts and Charting in Excel 3 March 7th 06 12:11 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 09:56 PM
want to remove all text characters equal to one character in length from text string [email protected] Excel Worksheet Functions 1 April 18th 05 12:25 AM


All times are GMT +1. The time now is 07:48 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"