The information in this article applies to:
SYMPTOMSWhen using the SaveSentMessageFolder property in the Microsoft Outlook 98 object model, the folder where sent items are to be stored is renamed instead of being set as the folder for sent items. CAUSEYou did not use the Set command to set an object variable equal to a particular folder. MORE INFORMATION
You must use a Set statement to have this property function as expected. If
you do not use the Set statement, the property simply renames the default
"sent items" folder. This is because without the Set statement, the data
type on the left side of the assignment statement defaults to text and
therefore the value on the right side of the assignment must also be text.
The default text value for a folder object is the folder name.
http://www.microsoft.com/support/supportnet/overview/overview.aspThe following Microsoft Visual Basic Scripting Edition (VBScript) code example illustrates the correct use of this property. It assumes that a CommandButton has been added to a message form and that you have a top- level MAPI folder named "Mailbox - John Smith," which has a subfolder named "FolderName."
REFERENCESFor more information about creating solutions with Microsoft Outlook 98, please see the following articles in the Microsoft Knowledge Base: Q180826 OL98: Resources for Custom Forms and Programming Q182349 OL98: Custom Forms and Outlook Solutions Additional query words: OutSol OutSol98
Keywords : |
Last Reviewed: November 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |