Hi,

Highlight the entire column - lets suppose it's column A.
Then put the following into the "Formula is" part in the Conditional Format 
dialog box:
=LEN(A1)<>10
Set the desired format.

Regards - Dave.

> Date: Sat, 8 Aug 2009 08:12:55 -0700
> Subject: $$Excel-Macros$$ Simple question about Format macro
> From: cdelano...@gmail.com
> To: excel-macros@googlegroups.com
> 
> 
> I am trying to do a simple macro to look at a column or line (most of
> the time a column) and evaluate the length on the data on each cell
> and determine if it is 10 digits.  If the value of the data in the
> cell is different than 10 digits (more or less). I want that cell to
> change color.
> 
> it is like a conditional formatting, but I can't figure out the right
> language to accomplish this.
> 
> I would appreciate your help with this.
> 
> Thanks a whole million !!!
> 
> > 

_________________________________________________________________
Use Windows Live Messenger from your Hotmail inbox Web IM has arrived!
http://windowslive.ninemsn.com.au/article.aspx?id=823454
--~--~---------~--~----~------------~-------~--~----~
----------------------------------------------------------------------------------
Some important links for excel users:
1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at 
http://www.excelitems.com
2. Excel tutorials at http://www.excel-macros.blogspot.com
3. Learn VBA Macros at http://www.vbamacros.blogspot.com
4. Excel Tips and Tricks at http://exceldailytip.blogspot.com
 

To post to this group, send email to excel-macros@googlegroups.com
If you find any spam message in the group, please send an email to:
Ayush Jain  @ jainayus...@gmail.com or
Ashish Jain @ 26may.1...@gmail.com
<><><><><><><><><><><><><><><><><><><><><><>
HELP US GROW !!

We reach over 5,200 subscribers worldwide and receive many nice notes about the 
learning and support from the group. Our goal is to have 10,000 subscribers by 
the end of 2009. Let friends and co-workers know they can subscribe to group at 
http://groups.google.com/group/excel-macros/subscribe
-~----------~----~----~----~------~----~------~--~---

Reply via email to