View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default Limit to 50 char only

Or, more simply maybe....

DataValidationAllow "Text Length" less than 51

Gord Dibben Excel MVP

On Thu, 1 Apr 2004 23:57:56 +0200, "Frank Kabel"
wrote:

Hi
try the following:
- select the cell (lets say A1)
- goto 'Data - Validation' and choose 'Custom'
- enter the formula
=LEN(A1)<=50

Note: this won't prevent copying longer data into this cell