Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I **hate** blinking text. Would you consider the alternative of simply
displaying a MessageBox showing you all the dates? Assuming the names are in Column A, the birthdays in Column B, the data starting on Row 2 and the worksheet name is Sheet3... Assuming the names are in Column A and the birthdates are in Column B and data starts on Row 2 and the data is on Sheet3... Private Sub Workbook_Open() Dim Dates As String Dim CellDate As Date Dim X As Long Dim DaysDiff As Long Dim LastRow As Long Const StartRow As Long = 2 With Worksheets("Sheet3") LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row For X = StartRow To LastRow CellDate = .Cells(X, "B").Value DaysDiff = DateDiff("d", Date, DateSerial(Year(Now), _ Month(CellDate), Day(CellDate))) If 0 < DaysDiff And DaysDiff <= 3 Then Dates = Dates & .Cells(X, "A").Value & " - " & _ .Cells(X, "B").Value & vbCrLf End If Next If Len(Dates) 0 Then MsgBox Dates End With End Sub Rick "sinecodap" .(donotspam) wrote in message ... I want to create a worksheet with Staff dates of birth and get a notification (column on worksheet blinking in any colour) 3 days to the staff's birthday date whenever i put on my system |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I calculate age using a birth date in Excel? | Excel Discussion (Misc queries) | |||
Can Excel notify me when a date is due? | Excel Discussion (Misc queries) | |||
calculating age by birth date using excel | Excel Worksheet Functions | |||
Calculate date of birth in Excel | Excel Worksheet Functions | |||
Need birth date 3/27/91 to calculate cronological age in excel | Excel Programming |