Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
OL2000: Common Outlook Object Model Limitations
Article ID: 208527 - View products that this article applies to.
This article was previously published under Q208527
This article describes known limitations you may encounter with the Microsoft Outlook object model. The following topics are covered:
OverviewUnlike other Microsoft Office programs which have "full" object models, such as Microsoft Word and Microsoft Excel, the Outlook object model primarily focuses on items and the folders in which they are contained. This means that while you can manipulate items, forms, and certain aspects of folders, many of the commands or settings that are available through the user interface are not available when programming. The Outlook object model does not parallel the Outlook user interface.
NOTE: You may be able to work around some of these object model limitations by using the CommandBars collection to execute menu or toolbar commands.
IMPORTANT: The scope of this article is limited to using Visual Basic-based programming technologies with the Outlook object model, and may not take into account possible solutions using the Collaborative Data Objects object model or other Microsoft Exchange-related programming technologies. For more information about these technologies, please consult information provided by the Microsoft Developer Network (MSDN) at the following Microsoft Web site:
Changing Option SettingsThere is no way to programmatically change many of the program-level settings in Outlook, since they are not exposed by the object model. Examples are any of the settings in the Options dialog box on the Tools menu.
Changing Folder PropertiesYou cannot change many options or properties related to folders. This includes AutoArchive settings, permissions settings, synchronization settings, and the default form for a folder.
Changing View AttributesWhile the Outlook object model now allows you to programmatically change views using the Explorer.CurrentView property, you cannot change specific settings of a view itself. For additional information about this limitation, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/262294/EN-US/ )OL2000: Cannot Programmatically Create or Modify Views
Posting a File to a FolderThere is no way to post a file system-based file to a folder using the Outlook object model. Word and Excel do support a Post method if you want to post a Word document or Excel workbook, but the method does not have an argument that allows you to programmatically specify the folder. The Post method instead displays a window so the user can select the folder.
A potential workaround to allow a file to be directly posted to a folder can be found at the following non-Microsoft Web site:
http://www.outlookexchange.com/articles/home/jayharlow07.aspThe third-party products that are discussed in this article are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.
Changing the Mouse Pointer to an HourglassYou cannot control the appearance of the mouse pointer using the Outlook object model. If you are writing code within Outlook that takes some time to process, you cannot directly force Outlook to display an hourglass pointer if Outlook does not do so automatically.
Changing Outlook Bar IconsIt is not possible to programmatically change the icons that are associated with a shortcut on the Outlook Bar. The default icon for the shortcut is always be used.
Changing the Status BarThere is no way to change the status bar text in Microsoft Outlook. The status bar is not exposed as it is in other Microsoft Office object models.
For additional information about available resources and answers to commonly asked questions about Microsoft Outlook 2000 solutions, please see the following article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/146636/EN-US/ )OL2000: Questions About Custom Forms and Outlook Solutions