LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Specify certain length(characters) when defining a column

True, Data Validation can be used to check text length, but **only** if
typed into the cell being validated... users can Paste longer text into the
cell without triggering the validation alert... the event code I posted will
react under both situations.

--
Rick (MVP - Excel)


"p45cal" wrote in message
...

Data Validation in cells can check text length for you.

This sounds like you're preparing fixed-width field files, so you may
also want to pad out shorter strings to the right length. If you go for
a vba (macro) solution, take a look at RSET and LSET


--
p45cal

*p45cal*
------------------------------------------------------------------------
p45cal's Profile: 558
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=160321

Microsoft Office Help




 
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
Specify certain length(characters) when defining a column ktuprah Excel Programming 0 December 7th 09 04:49 PM
Defining a variable length area for output. JHB Excel Discussion (Misc queries) 2 August 5th 09 10:43 PM
Defining a length N1KO Excel Programming 0 February 10th 09 07:30 PM
visual basic editor- defining length of a year wheefus Excel Programming 0 January 13th 08 03:57 PM
Defining the length of an array variably franzklammer Excel Programming 4 June 21st 06 11:14 AM


All times are GMT +1. The time now is 03:41 AM.

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

About Us

"It's about Microsoft Excel"