![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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! |
#2
|
|||
|
|||
![]()
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! |
#3
|
|||
|
|||
![]()
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! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Open appointments from VBA Form? | Sangeeta | Outlook - Calandaring | 0 | June 20th 06 08:21 PM |
Open Form from Macro | [email protected] | Outlook - Using Forms | 5 | June 16th 06 11:42 PM |
How to open Public Folders 'Contact Form' using VBA | mmattson | Outlook and VBA | 1 | May 17th 06 10:06 PM |
VBA shortcut to open custom form in design mode? | Burma Jones | Outlook and VBA | 4 | March 30th 06 11:37 AM |
VBA shortcut to open custom form in design mode? | Burma Jones | Outlook - Using Forms | 2 | March 6th 06 07:17 PM |