Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Please Help with Macro Code

IF Statement in a macro:

If value in H7 is greater than value in D7, then change cell
background color of H7 to BLUE. If value in H7 is less than value in
D7, then change cell background color of H7 to RED.

If value in H8 is greater than value in D8, then change cell
background color of H8 to BLUE. If value in H8 is less than value in
D8, then change cell background color of H8 to RED.

This should be done for each cell in column H starting from H7 going
down.

I'm trying to include this IF statement in a macro I already have.

Thanks for your help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 320
Default Please Help with Macro Code

Why not already set it up to use conditional formatting? No macro necessary!

"Damil4real" wrote in message
...
IF Statement in a macro:

If value in H7 is greater than value in D7, then change cell
background color of H7 to BLUE. If value in H7 is less than value in
D7, then change cell background color of H7 to RED.

If value in H8 is greater than value in D8, then change cell
background color of H8 to BLUE. If value in H8 is less than value in
D8, then change cell background color of H8 to RED.

This should be done for each cell in column H starting from H7 going
down.

I'm trying to include this IF statement in a macro I already have.

Thanks for your 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
Macro Code muddan madhu Excel Discussion (Misc queries) 4 April 13th 08 08:23 PM
macro code muddan madhu Excel Discussion (Misc queries) 1 April 6th 08 04:44 PM
Deleting code from a macro (by a macro) Brettjg Excel Discussion (Misc queries) 2 May 8th 07 11:14 PM
Macro code Shu of AZ Excel Discussion (Misc queries) 2 January 29th 07 07:29 PM
Macro VB code help Anthony Excel Discussion (Misc queries) 4 October 8th 05 08:25 PM


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