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: 14
Default Comditional Formatting Problem

Can someone help me determine what is wrong with the following code.
I am needing to change the color of the text in a cell to red if the cell is
100%.

My code I have currently is follows.

Sub Red()
Range("F9:G9").Select
If ActiveCell.Value 100 Then
ActiveCell.Font.ColorIndex = 3
End If
End Sub

I appreciate any help you can give me.
If I am taking the wrong approach please advise.
Thank You
Ed
 
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
Formatting Problem John Calder New Users to Excel 2 April 6th 09 01:01 PM
formatting problem Beth[_2_] Excel Discussion (Misc queries) 3 July 30th 08 03:39 AM
csv to xls formatting problem [email protected] Excel Discussion (Misc queries) 1 October 10th 06 11:58 AM
formatting problem srv5uk Excel Discussion (Misc queries) 1 July 7th 05 07:28 PM
Formatting problem Henry Excel Discussion (Misc queries) 11 June 25th 05 01:20 AM


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