#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Patterns

Want to create a macro or a function for the following. Ex. When I i
cell A1 write OK I want the row to be formatted with pattern green. I
i write NOT OK I want the row to be formatted in a another color. I a
not sure this is possible without pressing a macro button. Please help

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default Patterns

Hi Little V,

Look at the built-in Conditional Formatting feature.

Select the cells that are to change according to the content of A1, then
try:

Format | Conditional Formatting | In Condition1 box select 'Formula Is' |
Select next box and type: $A$1="OK" | Hit the Format key | Select the
Patterns tab | Select a suitable color | OK | Add

Repeat all the previous steps, replacing "OK" with your alternative "Not OK"

Finally, click OK to confirm all your choices.

If you need further help with conditional formatting, see Debra Dalgleish's
excellent tutorial at:

http://www.contextures.com/xlCondFormat01.html


---
Regards,
Norman



"LittleV " wrote in message
...
Want to create a macro or a function for the following. Ex. When I in
cell A1 write OK I want the row to be formatted with pattern green. If
i write NOT OK I want the row to be formatted in a another color. I am
not sure this is possible without pressing a macro button. Please help!


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Patterns

Hi !

Thanks to both Zantor and Norman! This was exactly what I needed!!

Best reg
Jo

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Patterns

Hi LittleV ,

Attached is a file named FormatRows.xls, I think it's what you ar
looking for.

regards
Zanto

Attachment filename: formatrows.xls
Download attachment: http://www.excelforum.com/attachment.php?postid=69210
--
Message posted from http://www.ExcelForum.com

Reply
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
shading and patterns Jude8761 Excel Worksheet Functions 3 February 9th 08 08:24 PM
SUBSTITUTE patterns? [email protected] Excel Worksheet Functions 3 January 16th 07 03:16 AM
Patterns tab tomKey Excel Discussion (Misc queries) 5 November 1st 06 08:33 PM
Ordering Patterns Tom Hewitt Excel Discussion (Misc queries) 0 September 20th 05 03:06 PM
patterns DArinello Excel Worksheet Functions 4 July 27th 05 05:28 AM


All times are GMT +1. The time now is 11:17 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"