Microsoft KB Archive/221956

= OL98: Published Form with Find Method Displays Macro Warning =

Article ID: 221956

Article Last Modified on 11/23/2006



This article was previously published under Q221956



SYMPTOMS
When you use the Find method in Visual Basic Scripting Edition (VBScript) to retrieve one of the standard Outlook properties from an item, one of the following symptoms occurs:


 * A macro warning message unexpectedly appears when you open the item.
 * The Message Class field of the item changes from a custom message class to the default message class for that type of item.
 * The size of the item unexpectedly increases.



CAUSE
Using the Find method to retrieve a standard Outlook field results in a one-off item.

For additional information about one-off items, please see the following article in the Microsoft Knowledge Base:

181266 OL98: Working with Form Definitions and One-Off Forms



WORKAROUND
Instead of using the Find method to refer to a standard field, use the more common syntax:

Item.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.



MORE INFORMATION
This problem does not occur when you use the Find method to retrieve user-defined fields.

