![]() |
VBA Macro to Open Form
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! |
VBA Macro to Open Form
Use the Application.CreateItemFromTemplate method. You'll need the full path to your saved Laptop.oft file.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "LDMueller" wrote in message ... 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! |
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" wrote in message ... 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! |
All times are GMT +1. The time now is 07:56 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com