Link to home
Start Free TrialLog in
Avatar of thandel
thandel

asked on

Edit a calendar entry

Is it possible to run some VBA code that just after entering a calendar item look at the notes and do some text replacement?

For example if a user enters "John Smith - Blue Hats" for a given day we would like to replace "Blue Hats" with "BH"?

Thank you.
Avatar of Michael Pfister
Michael Pfister
Flag of Germany image

http://msdn.microsoft.com/en-us/library/aa155701(v=office.10).aspx#odc_ch11olevents_topic6

Using the ItemAdd event might be helpful.No Outlook here, so I can't provide a more detailed sample.

http://www.slipstick.com/outlook-developer/send-email-when-you-add-appointment-to-calendar/

This is similar to your request, except modify your calendar item instead of sending an email

HTH.
Avatar of thandel
thandel

ASKER

Thanks similiar and perhaps useful but I'm not familiar with coding in Outlook so some sort of example specific to this question would be helpful for a successful solution.
ASKER CERTIFIED SOLUTION
Avatar of Michael Pfister
Michael Pfister
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thandel

ASKER

Great thanks... found the Items_ItemChange if the item is edited too.... thanks!