Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
blue
 
Posts: n/a
Default How do I set up a worksheet to let me know when a birthday is comi


  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi blue

i did this for a workbook to remind people of when their first aid
certificate refresher is due by using the following two methods
1) set up conditional formatting on the worksheet containing the people's
names and the dates of the refresher so that a refresher a month is advance
changes to greeen, a week in advance it changes to yellow and on the day &
post it changes to red ... this was just done using format / conditional
formatting

2) set up a Workbook_Open macro which, when the workbook was opened, checked
to see if anyone was due for a refresher the following day, the code used
was:
Sub workbook_open()

Dim pname As String
Dim cur_date As Date

cur_date = Format(Now(), "dd/mm/yyyy")
For Each cell In Range("ExpiryDate")
If cell = cur_date + 1 Then
cell.Select
pname = ActiveCell.Offset(0, -3).Range("A1")
MsgBox pname & " is due for a refresher course tomorrow",
vbInformation, "Refresher Course"
End If
Next

End Sub

---
if this sounds like what you're after and you'ld like any more details on
how to do either of these steps please feel free to post back.

Cheers
JulieD

"blue" wrote in message
...



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
copyright and worksheet protection dow Excel Discussion (Misc queries) 2 January 3rd 05 03:07 PM
Executing macro for all worksheet from a different worksheet Biti New Users to Excel 3 December 8th 04 10:05 AM
Reference Data in Moved Worksheet tommcbrny Setting up and Configuration of Excel 1 December 1st 04 06:49 PM
Linking items GREATER THAN O on another worksheet in the same Work Eddie Shapiro Excel Discussion (Misc queries) 4 December 1st 04 02:55 PM
Worksheet name and Backward compatibility Rich Excel Discussion (Misc queries) 3 November 30th 04 06:10 PM


All times are GMT +1. The time now is 01:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"