CUSTOME FORM IN VISUAL BASIC

  • Thread starter Thread starter Puneet
  • Start date Start date
P

Puneet

Hi All!!!!!!!!1

Need some urgent help on this.

I have created a custom form in Outlook2000 based on Message Form.
I have published this form in my organizational folder.
Now from VB i want to create an item of this form??? How to do that??

I can create an item of New message in VB using
objoutlook.CreateItem(olMailItem)
But how to do the same for custom form.the custom form is not saved on my
local system so need a way to access it from the organizatinal folder as i
need to distribute the application.

Any clue on that!!!!!!!!!!!

Puneet
 
To create a new instance of a custom form programmatically, use the Add method on the target folder's Items collection. If it's a message form, you can 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. Otherwise, you can use the code at http://www.slipstick.com/dev/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.

--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
 
Back
Top