Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Condition Formatting in code. How?


Put this in the WorkSheet module:

Private Sub Worksheet_Change(ByVal Target As Range)
Cells(2, 2).Select
If Cells(2, 2) 5 Then ActiveCell.Interior.Color = vbWhite
End Su

--
raypayett

-----------------------------------------------------------------------
raypayette's Profile: http://www.excelforum.com/member.php...fo&userid=2956
View this thread: http://www.excelforum.com/showthread.php?threadid=57074

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Condition Formatting in code. How?

Thanks for the reply,

I placed the code you posted inot the sheets code but i get a 'Select method
of range class failed' error.

I have the code i posted in a module and run it from a call macroxx

I think i have a simple error in the 'TODAY()' area??

Corey....
"raypayette" wrote
in message ...

Put this in the WorkSheet module:

Private Sub Worksheet_Change(ByVal Target As Range)
Cells(2, 2).Select
If Cells(2, 2) 5 Then ActiveCell.Interior.Color = vbWhite
End Sub


--
raypayette


------------------------------------------------------------------------
raypayette's Profile:
http://www.excelforum.com/member.php...o&userid=29569
View this thread: http://www.excelforum.com/showthread...hreadid=570740



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
Formatting / Condition Help ?? Kim Excel Discussion (Misc queries) 9 September 24th 09 03:59 PM
code to check condition for each row Horatio J. Bilge, Jr. Excel Discussion (Misc queries) 3 February 10th 09 08:07 PM
Condition Formatting in code. How? Corey Excel Programming 1 August 11th 06 03:18 PM
Condition Formatting in code. How? Barb Reinhardt Excel Programming 0 August 11th 06 02:28 PM
I need 4 condition for condition formatting SeeKY Excel Programming 2 June 7th 05 09:41 AM


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