how can I set up one click access to form templates in outlook?

G

gbswales

I want to be able to use my personalised forms from either toolbar buttons or
text links. I would imagine this could be done using macros and understand
the basics of writing macros but not the syntax to use for outlook - I wonder
if anyone has done this - what I want to do (from one click text/button) is
open
tools > forms >choose forms>user templates in file system/form123 (obviously
a different form for each macro)

I would also like it if possible to set the senders email address to a
specific one that is not my default but one that I have added to my account

If someone can come up with the basic syntax I understand macros enough to
be able to edit the form name and email address
 
S

Sue Mosher [MVP-Outlook]

To create a new instance of a published custom form programmatically, use the Add method on the target folder's Items collection:

Set newItem = targetFolder.Items.Add("IPM.Post.YourFormName")

If it's a message form, 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.

For unpublished forms (.oft files), you would use not Items.Add but Application.CreateItemFromTemplate.

See http://www.outlookcode.com/article.aspx?id=56 for other ideas for making forms easy to launch.

To setting the sender's email address, you can try setting the SentOnBehalfOfName property, test first -- you may not like the way it looks to recipients.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top