#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default 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

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 cells pblake Excel Discussion (Misc queries) 0 March 8th 07 07:48 PM
?Formatting cells? leonperrins Excel Discussion (Misc queries) 7 December 11th 06 12:21 PM
Formatting cells Nospam New Users to Excel 6 October 23rd 06 03:34 AM
Formatting cells Jello Excel Discussion (Misc queries) 1 January 27th 06 03:28 AM
Conditional Formatting Multiple cells based on 2 cells Louis Markowski Excel Worksheet Functions 2 June 1st 05 05:26 PM


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