Tool-Button to activate Privat Forms

  • Thread starter Thread starter Jorgensen
  • Start date Start date
J

Jorgensen

I have make a Private Forms. How does I activate my Forms whit a button?

In Word is it posible to record a makro ... but I'm not sure is posible in
Outlook.
 
By "a Private Forms," do you mean a form that is marked on its (Properties) page "use only for responses"? 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.
 
Back
Top