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
Disable Shortcut Keys in axwindowsmediaplayer1 (media player)
Speeding up a simple UPDATE in Oracle SQL
OutlookAnywhere for Exchange 2007 - client keeps asking for credentials
Sync Access database contacts with Exchange Contacts list
Incremental search listbox w/ SQL Server w/ ability to append records to the serached table
Batch script to calculate elapsed time in seconds : must be able to handle if time crosses midnight
NULLS FIRST, NULLS LAST on order by
'SettingsSingleFileGenerat
or' 'ResXFileCodeGenerator' problem
Using 3rd Party SSL to Setup Exhange 2007, Outlook 2007, Server 2003 with Terminal Services
Using VBA to read inbox of non-default mailbox