Create field from VBA

  • Thread starter Thread starter Krugliy Krugliy via OfficeKB.com
  • Start date Start date
K

Krugliy Krugliy via OfficeKB.com

Hello.
I develop application that will read entries from some Outlook's folder. And I need to have possibility to write some information to each entry that I already read. Of course user must not see this information.
If anybody know, how I can do this on VBA, please, help me.
 
Every piece of information stored in an Outlook item is placed inside a
built-in or user-defined field. Although the controls that display the
values in these fields can be hidden in a custom form, the fields can always
be displayed in a folder view so you can't effectively store hidden
information AFAIK.

The best method is to use CDO to create a hidden message in the folder to
store this information and associate it with the relevant item. Otherwise,
you could use a database to store the hidden info, but this would involve a
little more work.
 
Another possibility would be to use UserProperties.Add with the second
argument set to False to avoid creating the field definition in the folder.
This will make it difficult (but not impossible) for the user to see the
data; the user would need to make the All Fields page visible or customize
the form to add a control for that field.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top