Macroing the opening of a specific form

  • Thread starter Thread starter Cecile
  • Start date Start date
C

Cecile

Hi there,

I have a form that I'd like to put on a shared folder for
several users to open and use.

The issue (besides the fact that I can't code!) is that
the default folder location is not the one that I wish to
use, and in addition to several folders, there are also
several forms that I'd like users to pick.

Ideally, clicking on this button would 1) retrieve the
form from its folder and 2) display it.

Is there already an existing command/shortcut, or should a
macro be written for this?

If a macro is required, could a charitable soul help me
out with this?

Thanks,

Cecile.
 
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.outlookcode.com/d/code/getfolder.htm to walk the folder hierarchy and return the MAPIFolder corresponding to a given path string.

See http://www.outlookcode.com/d/launchform.htm for an example.
 
Thanks Sue!

Cecile.
-----Original Message-----
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.outlookcode.com/d/code/getfolder.htm to walk
the folder hierarchy and return the MAPIFolder
corresponding to a given path string.
See http://www.outlookcode.com/d/launchform.htm for an example.


--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers



"Cecile" <[email protected]> wrote in
message news:[email protected]...
 
Back
Top