ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Set up contract expiration dates program? (https://www.excelbanter.com/excel-programming/334174-set-up-contract-expiration-dates-program.html)

wastedwings

Set up contract expiration dates program?
 
How can I set up a program in Excel to help me track Contract Expiration dates?

Nigel

Set up contract expiration dates program?
 
Try using the conditional formatting on the sheet in question - set the
condition less than and the fomula to =now()

Or in VBA try something like the following, here cells C1 to C50 are set to
be coloured white text on a red background if the date in the cell is less
than the system date (todays).

With Range("C1:C50")
.FormatConditions.Add Type:=xlCellValue, Operator:=xlLess,
Formula1:="=NOW()"
.FormatConditions(1).Font.ColorIndex = 2
.FormatConditions(1).Interior.ColorIndex = 3
End With


--
Cheers
Nigel



"wastedwings" wrote in message
...
How can I set up a program in Excel to help me track Contract Expiration

dates?




All times are GMT +1. The time now is 11:33 PM.

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