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.