LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default Spreadsheet formatting

I have a spreadsheet that has been built for our Customer Service unit to
record enquiries - they asked for the spreadsheet to change the row column
depending on how old the enquiry had got before it was completed. For this I
have used the following conditional formatting:

Condition 1
=AND($A4<=TODAY(),$A4TODAY()-5)
Condition 2
=AND($A4<=TODAY(),$A4TODAY()-7)
Condition 3
=AND($A4<=TODAY(),$A4<" ")

What they also want is that the row turns grey once they input a completion
date - this is done with the following code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Range("H:H"), Target) Is Nothing Then
Exit Sub
End If
If IsEmpty(Target.Value) Then
Exit Sub
End If
Target.EntireRow.ClearFormats
Target.EntireRow.Interior.ColorIndex = 15
End Sub

However, and this is where I need some help, the code that turns the
completed rows grey also knocks out the cell formatting i.e. cell alignment
and the fact that some cells are formatted specifically as dates - is there
any way to restrict the change to just the conditional formatting?

Also, any idea why (or how to stop the fact that) the empty rows sit on the
spread sheet coloured red?

If you can help me with htis - you're a star!

 
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
Pasting from another spreadsheet changes formatting Ronan Excel Discussion (Misc queries) 1 September 12th 06 07:28 PM
Spreadsheet Appearance/Formatting Linda Adams Excel Discussion (Misc queries) 2 May 16th 06 03:15 PM
Can just the formatting alone in a spreadsheet be protected? Clorox Excel Discussion (Misc queries) 2 April 25th 06 05:00 PM
Formatting Spreadsheet windsong Excel Discussion (Misc queries) 2 October 19th 05 05:54 PM
shared spreadsheet - different formatting AKE Excel Discussion (Misc queries) 0 March 3rd 05 10:07 AM


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