PC Review


Reply
Thread Tools Rate Thread

Calling a custom form from another application

 
 
=?Utf-8?B?U0ZBeGVzcw==?=
Guest
Posts: n/a
 
      6th May 2005
Hello,

I have been trying to find a way to open a published custom Outlook form
outside of Outlook using VBA. The form has vbscript, so using an .oft via the
CreateItemFromTemplate method will not work. I tried changing the message
class of the newly created mail item, but that didn't seem to work.

Any suggestions are most welcome.

Thanks!

 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      6th May 2005
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.

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


"SFAxess" <(E-Mail Removed)> wrote in message news:7AA46F77-1A69-4070-9159-(E-Mail Removed)...
> Hello,
>
> I have been trying to find a way to open a published custom Outlook form
> outside of Outlook using VBA. The form has vbscript, so using an .oft via the
> CreateItemFromTemplate method will not work. I tried changing the message
> class of the newly created mail item, but that didn't seem to work.
>
> Any suggestions are most welcome.
>
> Thanks!
>

 
Reply With Quote
 
=?Utf-8?B?U0ZBeGVzcw==?=
Guest
Posts: n/a
 
      6th May 2005
That did the trick!

Thank you so much Sue! You are a true master.

"Sue Mosher [MVP-Outlook]" wrote:

> 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.
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "SFAxess" <(E-Mail Removed)> wrote in message news:7AA46F77-1A69-4070-9159-(E-Mail Removed)...
> > Hello,
> >
> > I have been trying to find a way to open a published custom Outlook form
> > outside of Outlook using VBA. The form has vbscript, so using an .oft via the
> > CreateItemFromTemplate method will not work. I tried changing the message
> > class of the newly created mail item, but that didn't seem to work.
> >
> > Any suggestions are most welcome.
> >
> > Thanks!
> >

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
calling custom address book from mail form =?Utf-8?B?TWljaGFlbCBNdWVsbGVy?= Microsoft Outlook Form Programming 2 9th Aug 2007 04:10 PM
constructing a form before calling Application.Run Lee Crabtree Microsoft C# .NET 7 25th Oct 2006 08:20 PM
Calling a function on a form from another application =?Utf-8?B?TWF1cnkgTWFya293aXR6?= Microsoft Access 0 21st Feb 2006 05:41 PM
Calling a Custom Form Fr. Frank Microsoft Outlook Form Programming 2 22nd Mar 2004 06:36 AM
Calling a Custom Form Fr. Frank Microsoft Outlook 0 20th Mar 2004 05:07 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:14 PM.