How make appt or task read only?

  • Thread starter Thread starter Bill Todd
  • Start date Start date
B

Bill Todd

Is there any way, via automation, to make an appointment or task read
only?

I have an application that needs to add appointments to the Outlook
calendar and I do not want the user to be able to change some of the
appointments because they are legally mandated deadlines.

Thanks,
 
You can check when a item is opened or read if it is a new item by
looking for Item.EntryID = "" or Item.Size = 0. If neither of those is
true then the item is an existing item. You can then lock each control
on the form. You can also handle the Item.Write and Item.Close events
in the form to cancel saving any changes.

This can be done from form code. You have to be careful about how you
do things so you also take care of in-cell editing of items from a
table view. You can also try doing things from a COM addin and
handling items from NewInspector for items that are opened, the Open
event for items that are opened in an existing Inspector and
SelectionChange to handle items that are edited in the table view.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Lead Author, Professional Outlook 2000 Programming, Wrox Press
Lead Author, Beginning VB 6 Application Development, Wrox Press
Attachment Options
http://www.slovaktech.com/attachmentoptions.htm
Extended Reminders
http://www.slovaktech.com/extendedreminders.htm
 
Back
Top