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 Forms / January 2004

Tip: Looking for answers? Try searching our database.

Saving outlook form definition

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neil Russell - 20 Jan 2004 12:10 GMT
From within code, on a form, vb6, vbs, is it possible to traverse a folder
tree of a public folder and save the definition of the defeult public form
from there to disk?

Outlook 2000/Echange2000/vb6 in use. Preference would be to be able to do it
from within a forms code.

Thanks,

Steve
Sue Mosher [MVP] - 20 Jan 2004 13:26 GMT
Yes, you should be able to use CDO to read the default form for the folder.
(I don't recall the MAPI property tag, but it's easy enough to find with
Outlook Spy. See http://www.cdolive.com/cdo10.htm if you need a primer on
using MAPI property tags.)

Then, you'd create a new item in the folder using that form and use the
File.SaveAs method to save it as an .oft file.

This would be a nice little application for backing up forms, wouldn't it?
Signature

Sue Mosher, Outlook MVP
Author of
    Microsoft Outlook Programming - Jumpstart for
    Administrators, Power Users, and Developers
    http://www.outlookcode.com/jumpstart.aspx

> From within code, on a form, vb6, vbs, is it possible to traverse a folder
> tree of a public folder and save the definition of the defeult public form
[quoted text clipped - 6 lines]
>
> Steve
Steve - 20 Jan 2004 13:26 GMT
That was the idea sue :)
Thanks I'll have a look. If I do it, i'll mail you a link for the finished
app.

> Yes, you should be able to use CDO to read the default form for the folder.
> (I don't recall the MAPI property tag, but it's easy enough to find with
[quoted text clipped - 16 lines]
> >
> > Steve
 
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.