Saving outlook form definition

  • Thread starter Thread starter Neil Russell
  • Start date Start date
N

Neil Russell

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
 
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
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?
 
Back
Top