Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / September 2003

Tip: Looking for answers? Try searching our database.

CUSTOME FORM IN VISUAL BASIC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Puneet - 30 Sep 2003 13:50 GMT
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
Sue Mosher [MVP] - 30 Sep 2003 14:47 GMT
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.

Signature

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
    http://www.outlookcode.com/jumpstart.aspx 

> 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??
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.