Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default text exceeds allowed number of characters per cell

I have 4 cells in a work sheet that I have to type or copy information into.
This cell always has more than 250 characters. What I wanted to do was set
up a conditional formatting statement that will turn all text greater than
250 characters red. The cell will allow you to type in and exceed the 250
characters. I can set up a validation to tell me when It exceeds the 250
characters? or, is there a way to stop the data entry at 250 characters per
cell?
Another option I have thought about but do not know if it will work in excel
2007. is after 200 characters it pushes the remianing text to the cell below
it. I am taking suggestions to address this issue.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,071
Default text exceeds allowed number of characters per cell

This little macro will look at every entry in the sheet as it is made, and
if the number of characters exceeds 200, it will put the first 200 in that
cell and the remainder in the cell beneath it. HTH Otto
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count 1 Then Exit Sub
If Len(Target) 200 Then
Target.Offset(1) = Right(Target, Len(Target) - 200)
Target = Left(Target, 200)
End If
End Sub

"majestic357" wrote in message
...
I have 4 cells in a work sheet that I have to type or copy information
into.
This cell always has more than 250 characters. What I wanted to do was
set
up a conditional formatting statement that will turn all text greater than
250 characters red. The cell will allow you to type in and exceed the 250
characters. I can set up a validation to tell me when It exceeds the 250
characters? or, is there a way to stop the data entry at 250 characters
per
cell?
Another option I have thought about but do not know if it will work in
excel
2007. is after 200 characters it pushes the remianing text to the cell
below
it. I am taking suggestions to address this issue.


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
set a maximum of characters allowed in a cell Huisman Excel Discussion (Misc queries) 1 November 9th 07 08:59 AM
Counting the number of specified text characters within a cell FlipperT Excel Worksheet Functions 3 December 1st 06 07:50 PM
How can I increase the number of text characters in a cell Preadno Excel Discussion (Misc queries) 2 November 6th 06 05:25 PM
Delete A Word That Exceeds X Number Of Characters brazen234 Excel Worksheet Functions 3 December 31st 05 04:37 PM
a way to limit the characters allowed in a cell? EmRit24 Excel Worksheet Functions 3 April 29th 05 09:30 PM


All times are GMT +1. The time now is 11:18 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"