PC Review


Reply
Thread Tools Rate Thread

Exporting information from an Appointment in Outlook

 
 
=?Utf-8?B?U2Ft?=
Guest
Posts: n/a
 
      11th Nov 2004
I have a small pice of code that generates an email messages to a user when
ever someone enters an appointment in their calendar. Currently, the email
that is generated tells them a new appointment has been added to their
calendar. How can I export out information from the following fields:

Subject
Location
Start Time
End Time

to make the email sent out more meaningful? I would like to send out an
email that says something like this:

A new appointment has been added to your calendar.
Subject: HR Meeting
Location: Conference Room 1A
Start Time: 11/15/04 11:00 am
End TIme: 11/15/04 11:30 am

I know how to do this with a custom form, but can't figure out how to do it
for a standard form - not sure what labels to query. In a custom form, if I
had a field called DT, I would query its value and generate an email with
that value:

MyItem.Body = "Subject: " + chr(13) + userproperties("dt").value

Just not sure what to query in this case.

Thanks.

S
 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      11th Nov 2004
You need to get the properties from the specific appointment -- same syntax
as MyItem.Body. If your code an event handler for MAPIFolder.Items.ItemAdd,
that appointment is the one passed as an Item argument for the event
handler.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Sam" <(E-Mail Removed)> wrote in message
news:CF12F148-838A-47EB-AF87-(E-Mail Removed)...
>I have a small pice of code that generates an email messages to a user when
> ever someone enters an appointment in their calendar. Currently, the email
> that is generated tells them a new appointment has been added to their
> calendar. How can I export out information from the following fields:
>
> Subject
> Location
> Start Time
> End Time
>
> to make the email sent out more meaningful? I would like to send out an
> email that says something like this:
>
> A new appointment has been added to your calendar.
> Subject: HR Meeting
> Location: Conference Room 1A
> Start Time: 11/15/04 11:00 am
> End TIme: 11/15/04 11:30 am
>
> I know how to do this with a custom form, but can't figure out how to do
> it
> for a standard form - not sure what labels to query. In a custom form, if
> I
> had a field called DT, I would query its value and generate an email with
> that value:
>
> MyItem.Body = "Subject: " + chr(13) + userproperties("dt").value
>
> Just not sure what to query in this case.
>
> Thanks.
>
> S



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in Exporting Recurring Appointment from Outlook 2007? Tom Microsoft Outlook Calendar 1 2nd Dec 2009 08:00 PM
Re: Accessing Outlook appointment info and exporting to Excel spreadsheet Ken Slovak - [MVP - Outlook] Microsoft Outlook VBA Programming 0 20th Feb 2009 04:35 PM
Outlook cannot find recurrrence information for this appointment Oreo Microsoft Outlook Calendar 1 3rd May 2008 04:40 AM
Can I create an appointment using contact information in Outlook? =?Utf-8?B?VGhlIEJyb3ducw==?= Microsoft Outlook Calendar 1 1st Aug 2007 01:33 PM
exporting user defined fields from outlook appointment forms =?Utf-8?B?R3JhZW1lIFdyaWdodA==?= Microsoft Outlook Calendar 2 1st May 2006 01:51 PM


Features
 

Advertising
 

Newsgroups
 


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