A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

VBA Macro to Open Form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old December 19th 06, 06:31 PM posted to microsoft.public.outlook.program_vba
LDMueller
external usenet poster
 
Posts: 53
Default 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!

Ads
  #2  
Old December 19th 06, 06:41 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default 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!

  #3  
Old December 19th 06, 06:54 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default 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!


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 07:55 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-2025 Outlook Banter.
The comments are property of their posters.