![]() |
How do I start a Form?
I am looking for a way to start a form I created in VB editor via either a
custom action or script. I have no idea how to do either. So can anyone help me figure out how to open a form from an action or rule. Also, How do I save a script or custom action for use in a rule? Please and thankyou, Brian |
How do I start a Form?
To create a new instance of a custom form programmatically, use the Add method on the target folder's Items collection:
Set newItem = targetFolder.Items.Add("IPM.Post.YourFormName") If it's a message form, use the Drafts folder as the target. If the target is a default folder, you can use the Namespace.GetDefaultFolder method to return it as a MAPIFolder object. To create an item in another person's mailbox, use Namespace.GetSharedDefaultFolder to get the MAPIFolder Otherwise, you can use the code at http://www.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string. Put your "script" for a rule in any VBA regular code module. -- Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54 "BrianL" wrote in message ... I am looking for a way to start a form I created in VB editor via either a custom action or script. I have no idea how to do either. So can anyone help me figure out how to open a form from an action or rule. Also, How do I save a script or custom action for use in a rule? Please and thankyou, Brian |
All times are GMT +1. The time now is 08:18 AM. |
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