Programming a button

  • Thread starter Thread starter SW
  • Start date Start date
S

SW

I have a button that I am writing a macro for that will
open up a custom form stored in my personal forms
library. How does one access the personal forms library
via vb code?

I know how to access folders and public folders but can't
figure out how to access a form form the library.

Any suggestions?

Thanks.
 
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