Microsoft
Software
Hardware
Network
Question : Excel 2003 VBA - Color Cells depending on character length
Hello Experts,
I have a master worksheet and a secondary spreadsheet. The Master is called Property.xls, the secondary is called ETL.xls.
I have created a very simple macro that copies columns of information from Property.xls to ETL.xls.
In the ETL workbook, the columns have a heading which states number of allowed characters, Eg A6 has Character 8 as a heading, E6 has Character 50 as a heading.
Is there anyway to do a sanity check on the data, once copied and pasted, so that any cells not matching the criteria are coloured?
Eg if any cells copied into column A were 9 characters or over, the cell would color Red. Cells copied to column E would colour red if they exceeded 50 characters?
Apologies for the convoluted post.
TIA
Answer : Excel 2003 VBA - Color Cells depending on character length
try conditional formatting with following formula A$1 will be the row with allowed number of characters
=LEN(A2)>A$1
(select all the cells where formatting applies)
Random Solutions
Urgent: How to locate the current in use ID file in Lutus Notes 7
DNS Search List appending to all nebios / dns names
Install IIS with a vbs script.If supporting files needed pick from a predefined path.
Extract / Create thumbnails (1st page) for office documents using PHP on Windows or Linux/Mac server
Apache webserver Linux and Gzip
Multilingual Issue in dotnet
Is it possible to encrypt an email message using PHP?
how to capture out parameter from storedProcedure in java
How to specify different languages for different users using Windows 2008 Teminal Server?
how can i pay electricity bill online using hdfc netbanking ??