PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Re: VBA Macro to Open Form

Reply

Re: VBA Macro to Open Form

 
Thread Tools Rate Thread
Old 19-12-2006, 06:54 PM   #1
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: VBA Macro to Open Form


What you will need to call is the Application.CreateItemFromTemplate method.
That takes a file path and will open an OFT file. If you are using the macro
from Outlook VBA that one line is all you need. You can display the form by
adding a second line that calls the Display method on the item returned by
CreateItemFromTemplate.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"LDMueller" <LDMueller@discussions.microsoft.com> wrote in message
news:8C846C07-167F-4255-B5E7-20D448B905C4@microsoft.com...
>I have an Outlook form which I can access from Outlook 2003 by going to
> Tools, Forms, Choose Form. If I "Look In" User Templates in File System I
> can see my form named Laptop. I'd like to create a macro in VBA code
> which
> will allow me to open this form.
>
> Can anyone help?
>
> Thanks in advance!
>


  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off