![]() |
Can someone post a VB snippet to change some form settings?
Hi,
We have a custom form with a few check boxes and a couple entry fields. I need some VB code that will set a couple of the check boxes to true and then put a date in an entry field. Does anyone have a code sample that can do this? How do I reference the currently opened message (with the custom form) ? Thanks for the help, Alan http://www.sadevelopment.com Partition Boot Manager and Large Drive Tools utilities! |
Can someone post a VB snippet to change some form settings?
From VB/VBA, you can use the Application.ActiveInspector.CurrentItem method from the Outlook object model to return the currently open item. In the VBScript code behind a custom form, you'd use the intrinsic Item object.
See http://www.outlookcode.com/article.aspx?ID=38 for a primer on working with Outlook property and control values. -- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Default User" wrote in message ... We have a custom form with a few check boxes and a couple entry fields. I need some VB code that will set a couple of the check boxes to true and then put a date in an entry field. Does anyone have a code sample that can do this? How do I reference the currently opened message (with the custom form) ? |
All times are GMT +1. The time now is 03:36 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com