Checkbox Private

F

Frank Van Eygen

I have a macro in Excel that generates a calendar appointment in Outlook that
works fine except that I don't know how to set the Private checkbox in
Outlook.
Can somebody help please?
 
S

Sue Mosher [MVP]

The object browser (F2 in VBA) is your friend. Take a look at the
AppointmentItem.Sensitivity property.
 
F

Frank Van Eygen

Tahnk you Sue,
This did the trick:
Set olApt = olApp.CreateItem(olAppointmentItem)
olApt.Sensitivity = olPrivate
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top