Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default macro help to change row colour automatically

my excel is like this

Australia xxx 100
yyy 200
zzz 300
Australia total 600

UK xxx 400
yyy 200
zzz 600
UK total 1200


i want to set a macro so that if the cell in column A contains "total", the
row colour (in this case, Australia total & UK total) will change into yellow
automatically..

thanks in advance for help


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default macro help to change row colour automatically

Use conditional formatting.

select all the cells, A1:A10
Goto FormatCondiitional Formatting
Change Condition 1 to Formula Is
Add a Formula of ISNUMBER(SEARCH("total"),A1))
Click the format button, select the Pattern tab and choose a colour
OK
OK


--
__________________________________
HTH

Bob

"angel" wrote in message
...
my excel is like this

Australia xxx 100
yyy 200
zzz 300
Australia total 600

UK xxx 400
yyy 200
zzz 600
UK total 1200


i want to set a macro so that if the cell in column A contains "total",
the
row colour (in this case, Australia total & UK total) will change into
yellow
automatically..

thanks in advance for help




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
change colour of font when below 94% automatically confused Excel Worksheet Functions 2 April 8th 08 12:46 PM
Change Tab colour using Macro Rajat Excel Worksheet Functions 4 October 24th 06 02:31 PM
Automatically change tab colour calin Excel Discussion (Misc queries) 1 March 27th 06 03:28 PM
formula help to change row colour automatically by some conditions Aarif Excel Worksheet Functions 6 March 17th 06 03:51 PM
Cell colour change automatically dustyv New Users to Excel 5 February 15th 05 08:39 PM


All times are GMT +1. The time now is 01:23 PM.

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"