Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2007

Tip: Looking for answers? Try searching our database.

Can you attach an alert to a date in excel(eg to outlook calendar

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Total Excel Dunce - 30 Mar 2007 11:10 GMT
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?
Bernie Deitrick - 30 Mar 2007 13:45 GMT
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

> 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?
Ben - 31 May 2007 05:29 GMT
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

> Dunce,
>
[quoted text clipped - 25 lines]
> > 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?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.