Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Can I attach alerts to dates in an excel spreadsheet, for example so that a
reminder will go off in my outlook when the date arrives? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dunce,
Copy the code below into a codemodule, and set a reference to Outlook. Then select the cells with the dates, and run the macro. It will create an appointment at 8:00 on the date of each cell. HTH, Bernie MS Excel MVP Sub CreateOutlookAppointments() Dim OL As Object Dim myAppt As Outlook.AppointmentItem Dim myCell As Range Set OL = CreateObject("outlook.application") For Each myCell In Selection Set myAppt = OL.CreateItem(olAppointmentItem) With myAppt .Body = "An important reminder" .Start = myCell.Value + 8 / 24 .Subject = "This is an important reminder" .Save End With Next myCell End Sub "Total Excel Dunce" <Total Excel wrote in message ... Can I attach alerts to dates in an excel spreadsheet, for example so that a reminder will go off in my outlook when the date arrives? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Bernie, what do you mean by "set a reference to Outlook. Then select the
cells with the dates, and run the macro". I have limited knowledge of macros so can you detail for me the process. Cheers "Bernie Deitrick" wrote: Dunce, Copy the code below into a codemodule, and set a reference to Outlook. Then select the cells with the dates, and run the macro. It will create an appointment at 8:00 on the date of each cell. HTH, Bernie MS Excel MVP Sub CreateOutlookAppointments() Dim OL As Object Dim myAppt As Outlook.AppointmentItem Dim myCell As Range Set OL = CreateObject("outlook.application") For Each myCell In Selection Set myAppt = OL.CreateItem(olAppointmentItem) With myAppt .Body = "An important reminder" .Start = myCell.Value + 8 / 24 .Subject = "This is an important reminder" .Save End With Next myCell End Sub "Total Excel Dunce" <Total Excel wrote in message ... Can I attach alerts to dates in an excel spreadsheet, for example so that a reminder will go off in my outlook when the date arrives? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
can i link a date in excel to my calendar in outlook? | Excel Discussion (Misc queries) | |||
alarm a date in excel to outlook calendar | Excel Discussion (Misc queries) | |||
Can you attach or imbed an Outlook Contact Of-03 in Excell cell? | Excel Discussion (Misc queries) | |||
Exporting a date field in Excel to an Outlook Calendar? | Excel Discussion (Misc queries) | |||
import calendar items from excel into outlook calendar | Excel Discussion (Misc queries) |