Problems reading Appointment Label Field...

J

Jack Porter

I am trying to read the Appointment Forms Label Field using the following
syntax:

txtAppointmentLabel = objThisItem.label

I can read all of the other fields, but not the label. Anyone have any
ideas?
 
S

Sue Mosher [MVP-Outlook]

When in doubt, check the object browser: Press ALt+F11 to open the VBA
environment in Outlook, then press F2. Switch from <All Libraries> to
Outlook to browse all Outlook objects and their properties, methods, and
events. You'll see that there is no AppointmentItem.Label property. This
means that you cannot access the label information through the Outlook
object model.

You can get it through CDO or Redemption, though. See
http://www.outlookcode.com/codedetail.aspx?id=139 for sample code. --
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

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