LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Change formats based on A:A cell value on each row - (not with conditional format!) ?

Hi,

I need VBA code for this, I can't use the conditional format function of
some reasons.

Let ? = a row between 6 and 96 and cells in same row between column C:G
should have different fonts, colorindex etc depending on what letter there
is in the cell in A column.

If A? = "K" then cells Range("C?:G?").ColorIndex = 1
If A? = "I" then cells Range("C?:G?").ColorIndex = 2
If A? = "R" then cells Range("C?:G?").ColorIndex = 3

Any suggestions?

By the way, the fastest way possible please, the VBA code will be into
worksheet_change. Maybe use "Find" rather than a Loop, maybe?


/Regards


 
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
Conditional Format based on another cell oldjay Excel Discussion (Misc queries) 3 July 29th 09 11:42 PM
Conditional Format based on a different cell Ramos Excel Worksheet Functions 3 October 22nd 08 05:36 PM
Lock cell formats (conditional format) Saintsman Excel Worksheet Functions 1 January 8th 08 05:12 PM
Conditional format: change row color based on cell value Carelle Excel Discussion (Misc queries) 2 January 3rd 08 09:26 PM
Conditional Format to change entire row based on one cells data Crowbar via OfficeKB.com Excel Discussion (Misc queries) 2 October 25th 05 04:01 PM


All times are GMT +1. The time now is 02:34 AM.

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

About Us

"It's about Microsoft Excel"