ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Formatting cells (https://www.excelbanter.com/excel-discussion-misc-queries/134961-formatting-cells.html)

Alice

Formatting cells
 
I have a list of names in Column A. These names all have a different
(current) dates next to them in Column B.

Is it possible to use a formula (or conditional formatting) so that when it
is, say 14 days before that date, it changes the colour of the two cellss
(the name and the date) to Red??

Would appreciate any help!

Thanks
alice

joel

Formatting cells
 
I added a new 3rd line

Sub worksheet_change(ByVal Target As Range)

If Target.Column = 23 Then

If IsEmpty(Target) Then Exit Sub

If Target < Cells(Target.Row, 22) Then

ReasonWhy = InputBox("Enter Reason date was Pushed back")
Cells(Target.Row, 24) = ReasonWhy

End If


End If


End Sub

"alice" wrote:

I have a list of names in Column A. These names all have a different
(current) dates next to them in Column B.

Is it possible to use a formula (or conditional formatting) so that when it
is, say 14 days before that date, it changes the colour of the two cellss
(the name and the date) to Red??

Would appreciate any help!

Thanks
alice



All times are GMT +1. The time now is 08:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com