Template oft that contains VBScript Is not running

Not open for further replies.


New Member
Outlook version
Outlook 2010 32 bit
Email Account

I have a template that is stored in the address "c:/mytemplates/myoft.oft"

The file "myoft.oft", has a vbscript script incorporated: Function Item_Send()

The template opens with the macro: Application.CreateItemFromTemplate(c:/mytemplates/myoft.oft) but does not run the script.

How to make to run the script of the template that is created after open with CreateItemFromTemplate?


Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
You didn't get a warning that the form needed published? Forms with Scripts need to be published, Forms with controls need to be opened using the Choose Forms explorer (New Items > Other Items > Choose Form the first time, then New Items > Custom Forms.

to publish the form, you need to show the Developer ribbon then open the template and publish.
Publishing Custom Forms in Outlook
Not open for further replies.
Similar threads
Thread starter Title Forum Replies Date
J Add an Attachment Using an Array and Match first 17 Letters to Matching Template .oft to Send eMail Outlook VBA and Custom Forms 2
F CAN'T SAVE OUTLOOK 2010 E-MAIL TEMPLATE (.oft) Using Outlook 1
N How to automatically update all fields in an Outlook message template (OFT)? Using Outlook 9
L Outlook saved template function too limited Using Outlook 2
J Automatically forward email and apply template Outlook VBA and Custom Forms 0
D Reply with a template loose the sender's embedded image Outlook VBA and Custom Forms 0
K Outlook template Using Outlook 1
Randy Redekopp How To Merge Contact Info to Email Custom Form Template Using Outlook 2
M Reply Inline With a Outlook Template Outlook VBA and Custom Forms 6
J Add Fillable Fields to Existing Template Outlook VBA and Custom Forms 1
D Macro sending outlook template from Excel list Outlook VBA and Custom Forms 6
D send email from Excel using outlook template Outlook VBA and Custom Forms 3
B Switch template with account Outlook VBA and Custom Forms 3
Diane Poremsky Using the Outlook Calendar Template New Slipstick.com Articles 0
LarryS change day template as cpao does not see .catx files Outlook VBA and Custom Forms 4
A VBA to create meeting from template from a time slot selected in someone's calendar Outlook VBA and Custom Forms 5
Q Editing an outlook. Template file (Otk) Using Outlook 1
A How can I load a HTML template into the WordEditor? Outlook VBA and Custom Forms 3
P Calendar template Using Outlook 2
M Update field codes when opening Outlook Template Outlook VBA and Custom Forms 2
J Outlook template with environ varaibles Outlook VBA and Custom Forms 0
N Creating or changing the main new mail message template in Outlook 2010 Using Outlook 2
M Calendar Printing Assistant Hangs only on specific Template Using Outlook 2
G Message template / custom forms and VBA Help needed - inserting info into table Outlook VBA and Custom Forms 3
T My Outlook Calendar Template Using Outlook 1
S Ask user to input email template through VBA Outlook VBA and Custom Forms 1
J VBS Script (macro) for word to open Outlook template. Outlook VBA and Custom Forms 2
B Outlook to Word Template error Using Outlook 4
I how to create appointment using saved template onto public folder shared calendar Using Outlook 3
S Modify account template? BCM (Business Contact Manager) 0
J Adding original email text to outlook message template Outlook VBA and Custom Forms 2
M How to create a document or email template for Opportunities BCM (Business Contact Manager) 0
S Workgroup template file location? Using Outlook 2
D outlook 2010 template accessable to others at work... Using Outlook 1
W Change Template Recipient Automatically - Outlook 2007 Using Outlook 5
W Template to produce calendars with wrapped text & user-defined fields? Using Outlook 1
C Monday Start Monthly Template Calendar Printing Assistant 0
R How to use an outlook template globally in an organization Using Outlook 1
D VBA: Send-From Code for Template Shortcut? Using Outlook 0
D Selection of Send-From Account with Template VBA Shortcut Using Outlook 0
L Contact Template Using Outlook 18
R How to design custom template under message/mail form ! Using Outlook 0
H Macro to load an Outlook Template Using Outlook 2
O automate dates in outlook template Using Outlook 1
R Outlook Template: Looking to distribute a VBA Outlook template to other people Using Outlook 1
J New e-mail message template Using Outlook 1
A outlook printing assistant Help editing template Calendar Printing Assistant 3
L reply to message using a custom template Using Outlook 1
E Second calendar Template/Form Invitation Using Outlook 9
M Default template Using Outlook 2

Similar threads