Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preventing data entry once 1024 character limit is reached 1

Status
Not open for further replies.

EliseFreedman

Programmer
Dec 6, 2002
470
GB
Hi there

I have developed an excel spreadsheet which users will complete and send to your department to report when an incident has occurred onsite.

I have come across the 1024 character limit for displaying cell contents in excel. In a lot of cases, users are putting more than 1024 characters in the cell and my colleagues who have to deal with the received forms are complaining as they cant see the detail in the form.

To accomodate this I have added a section to my sheet for additional information. I have added data validation to the first cell to display an error message when the cell exceeds 1024 characters. The error message asks them to enter the remaining info into the additional information field. My problem is that the error message is not displayed until the user hits return to move to the next cell by which time he/she may have typed in a lot more than 1024 characters.

Is there any way in which a warning can be displayed as soon as the 1024 character limit has been hit?
 


Hi Else,

Use an embedded control toolbox textbox. You have the events to keep track of every keystroke.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 


Also take a look at Data Validation -- TEXT LENGTH.

Although it allows the typing of excess characters, it prevents finishing entering the data, so the editing of the cell can still take place.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks so much Skip

By drawing my attention to the embedded control toolbox textbox, I accomplished in 10 minutes what I had been trying to do all day.

Elise
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top