• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Custom Form Security Changes

Slipstick Systems

› Outlook › Custom Form Security Changes

Last reviewed on March 16, 2026     72 Comments

Applies to: Outlook (classic), Outlook 2007, Outlook 2010

Following the June 13 2017 security update, users discovered published custom forms no longer worked because VBScript behind the form and some controls are blocked with the following error message:

To help prevent malicious code from running, one or more objects in this form were not loaded. For more information, contact your administrator.

custom form error

This was fixed in the July 27 2017 update but "broken" again by the September 12 2017 update. If you continue to get this error message, you (or additional security updates) may have disabled ActiveX in Word or Excel. Instructions are here.

The cause of problems with the September 12 2017 update is intentional: Microsoft disabled custom form script functionality. If you need it enabled, you'll need to set two keys, one to enable scripting and a second one with the message class name of each form that has code behind it.

Run this form will not work unless you add the default message class to the second registry key as well. After a new form is published, you'll need to add the form name to the registry too.

After adding the keys, you'll need to restart Outlook.

If the keys in the path don't exist, you'll need to create them.

If Outlook is 32 bit and Windows 64-bit, the keys are here

 

Windows and Outlook are the same bitness

If Windows and Outlook both have the same bitness, you'll use these keys.

Reminder: You'll need to add a registry value for each message class that will contain scripts. For example, if the custom form is IPM.Contact.custom, you’ll need to create a string value using the custom form’s message class. Add IPM.Contact to enable Run this Form during the design process. After the form is published, remember to add the form name to the registry too.

Outlook 2016

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Outlook\Security
DWORD: DisableCustomFormItemScript
Value: 0 (to enable)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Outlook\Forms\TrustedFormScriptList
REG_SZ: IPM.Contact.custom-form-name
Value: (leave blank)

Use this sample registry file to add the Outlook 2016 keys to the registry. Save it as a text file and add your form names to the TrustedFormScriptList key, then save as a reg file and double click to run.
Outlook 2016\Windows (same bitness)

Outlook 2013

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\Outlook\Security
DWORD: DisableCustomFormItemScript
Value: 0 (to enable)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\Outlook\Forms\TrustedFormScriptList
REG_SZ: IPM.Contact.custom-form-name
Value: (leave blank)

Use this sample registry file to add the Outlook 2013 keys to the registry. Save it as a text file and add your form names to the TrustedFormScriptList key, then save as a reg file and double click to run.
Outlook 2013\Windows (same bitness)

Outlook 2010

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Outlook\Security
DWORD: DisableCustomFormItemScript
Value: 0 (to enable)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Outlook\Forms\TrustedFormScriptList
REG_SZ: IPM.Contact.custom-form-name
Value: (leave blank)

Use this sample registry file to add the Outlook 2010 keys to the registry. Save it as a text file and add your form names to the TrustedFormScriptList key, then save as a reg file and double click to run.
Outlook 2010\Windows (same bitness)

Outlook 2007

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Outlook\Security
DWORD: DisableCustomFormItemScript
Value: 0 (to enable)
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\12.0\Outlook\Forms\TrustedFormScriptList
REG_SZ: IPM.Contact.custom-form-name
Value: (leave blank)

Sample registry file to add the Outlook 2007 keys to the registry. Save it as a text file and add your form names to the TrustedFormScriptList key, then save as a reg file and double click to run.
Outlook 2007 32bit, Windows 32bit

 

Windows 64-bit and Outlook 32-bit

You'll need to add a registry value for each message class that will contain scripts.

For example, if the custom form is IPM.Contact.custom, you’ll need to create a string value using the custom form’s message class. Add IPM.Contact to enable Run this Form during the design process. After the form is published, remember to add the form name to the registry too.

Outlook 2016

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Outlook\Security
DWORD: DisableCustomFormItemScript
Value: 0 (to enable)
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Outlook\Forms\TrustedFormScriptList
REG_SZ: IPM.Contact.custom
Value: (leave blank)

You can use this sample registry file to add the Outlook 2016 32-bit/Windows 64-bit keys to the registry. Save it as a text file and add your form names to the TrustedFormScriptList key, then save as a reg file and double click to run.
Outlook 2016 32bit, Windows 64bit

Outlook 2013

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook\Security
DWORD: DisableCustomFormItemScript
Value: 0 (to enable)
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\15.0\Outlook\Forms\TrustedFormScriptList
REG_SZ: IPM.Contact.custom-form-name
Value: (leave blank)

You can use this sample registry file to add the Outlook 2013 32-bit/Windows 64-bit keys to the registry. Save it as a text file and add your form names to the TrustedFormScriptList key, then save as a reg file and double click to run.
Outlook 2013 32bit, Windows 64bit

Outlook 2010

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\14.0\Outlook\Security
DWORD: DisableCustomFormItemScript
Value: 0 (to enable)
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\14.0\Outlook\Forms\TrustedFormScriptList
REG_SZ: IPM.Contact.custom-form-name
Value: (leave blank)

You can use this sample registry file to add the Outlook 2010 32-bit/Windows 64-bit keys to the registry. Save it as a text file and add your form names to the TrustedFormScriptList key, then save as a reg file and double click to run.
Outlook 2010 32bit, Windows 64bit

Outlook 2007

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\12.0\Outlook\Security
DWORD: DisableCustomFormItemScript
Value: 0 (to enable)
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\12.0\Outlook\Forms\TrustedFormScriptList
REG_SZ: IPM.Contact.custom-form-name
Value: (leave blank)

Use this sample registry file to add the Outlook 2007 32-bit/Windows 64-bit keys to the registry. Save it as a text file and add your form names to the TrustedFormScriptList key, then save as a reg file and double click to run.
Outlook 2007 32bit, Windows 64bit

Accurately copy the form name

You can accurately copy the form name from a list view if the Message Class field is in the view and in-cell editing is enabled.

You'll need to add the Message Class field to the view, while in-cell editing is turned on by default with list views, except for Mail folders.

copy the message class

 

Macro to create a reg file

The following macro will write the custom form names in the selected folder to a text file (in your documents folder) then check for duplicates and save a cleaned copy as a .reg file. You'll need to change the registry path if you aren't using Outlook 2016 32-bit on Windows 64-bit.

This will write all message class EXCEPT the default message class to the text file, including all of the messages classes used for NDRs, meeting responses, etc. These do not need to be added to the registry. I added an If statement to remove some of these default form types but may have missed a few.

I tested this on a folder with 5000 items and it took just a few seconds.

To-dos: check all folders and convert to a VBScript.

Sub CreateTrustedFormScriptList()
  Dim CurItem As Object
  Dim CurFolder As Folder
  Dim AllItems As Items
  Dim strReg As String
 Dim objFS As New Scripting.FileSystemObject, objFile As Scripting.TextStream
  
  ' Use your User folder in the save path
Dim enviro As String
enviro = CStr(Environ("USERPROFILE"))
 
   Set CurFolder = Application.ActiveExplorer.CurrentFolder
   
If Not CurFolder Is Nothing Then
     
    Select Case CurFolder.DefaultItemType
    Case 0
        strDefaultClass = "IPM.Note"
    Case 1
        strDefaultClass = "IPM.Appointment"
    Case 2
        strDefaultClass = "IPM.Contact"
    Case 3
        strDefaultClass = "IPM.Task"
    End Select
  
   Set AllItems = CurFolder.Items

   For Each CurItem In AllItems
      
  If CurItem.MessageClass <> strDefaultClass Then
   
 ' check for other message classes outlook uses
 ' there may be more
   If CurItem.MessageClass = "REPORT.IPM.Note.NDR" Or _
    CurItem.MessageClass = "IPM.Schedule.Meeting.Resp.Pos" Or _
    CurItem.MessageClass = "IPM.Post.Rss" Or _
    CurItem.MessageClass = "REPORT.IPM.Schedule.Meeting.Request.NDR" Or _
    CurItem.MessageClass = "IPM.Sharing" Or _
    CurItem.MessageClass = "REPORT.IPM.Note.IPNRN" Or _
    CurItem.MessageClass = "REPORT.IPM.Note.DR" Or _
    CurItem.MessageClass = "IPM.Note.SMIME.MultipartSigned" Or _
    CurItem.MessageClass = "IPM.Schedule.Meeting.Request" Or _
    CurItem.MessageClass = "IPM.DistList" Then
   Else
        strReg = Chr(34) & CurItem.MessageClass & Chr(34) & "=" & Chr(34) & Chr(34) & vbCrLf & strReg
    End If
   End If
   Next
 
  End If
  
strFile = enviro & "\Documents\TrustedFormScriptList-" & CurFolder.NAME & ".txt"
  
  Set objFile = objFS.CreateTextFile(strFile, False)
  If objFile Is Nothing Then
    MsgBox "Error creating file '" & strFile & "'.", vbOKOnly + vbExclamation _
      , "Invalid File"
    Exit Sub
  End If
    
With objFile
    .Write "Windows Registry Editor Version 5.00" & vbCrLf & vbCrLf
    .Write "[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Outlook\Forms\TrustedFormScriptList]" & vbCrLf
    .Write strReg
 End With

 objFile.Close
  
' remove dupes
' based on macro at
' https://www.experts-exchange.com/questions/27309860/VbScript-to-remove-Duplicate-rows-from-CSV-File.html#a36545408
Dim tsIn, tsOut, dic, TheLine, Repeat
Set dic = CreateObject("Scripting.Dictionary")
dic.CompareMode = vbTextCompare 'NOT case sensitive. omit for case sensitive
Set tsIn = objFS.OpenTextFile(strFile)
Set tsOut = objFS.CreateTextFile(strFile & ".reg")

Do Until tsIn.AtEndOfStream
    TheLine = tsIn.ReadLine
    If TheLine <> "" Then
        If dic.Exists(TheLine) Then
            Repeat = True
        Else
            Repeat = False
            dic.Add TheLine, TheLine
        End If
    Else
        Repeat = False
    End If
    If Not Repeat Then tsOut.WriteLine TheLine
Loop

tsIn.Close
tsOut.Close
Set tsIn = Nothing
Set tsOut = Nothing
Set dic = Nothing
  
  MsgBox "Done."

  Set objFS = Nothing
  Set objFile = Nothing
  Set objItem = Nothing
 
End Sub

 

Enable ActiveX

If you get the error when you open a form and some controls, including the message or body control, ActiveX is disabled.

Open Word, go to File > Options > Trust Center > Trust Center Settings. Select ActiveX Settings and allow ActiveX and check the Safe mode option.

ActiveX security settings in Word

I recommend starting with the most restrictive option and testing it to see if your form still errors. Only use "Enable all controls without restrictions and without prompting (not recommended; potentially dangerous controls can run)" if neither of the Prompt options solve the problem.

While ActiveX is generally safe in Outlook, a rogue ActiveX control in a document or spreadsheet downloaded from the internet could infect your computer. Always use "Safe mode (helps limit the control’s access to your computer)"

The setting is stored in this registry key:
HKEY_CURRENT_USER\Software\Microsoft\Office\Common\Security
DWORD: DisableAllActiveX
Values: 0 (allow all)
DWORD: UFIControls
Value: 2 (use Safe mode). Allowed values are 1 - 6.

The allowed values for UFIControls are as follows.

  1. Regardless of how the control is marked as Safe For Initialization (SFI), load it and use the persisted values (if any). Does not trigger a prompt.
  2. If marked Safe For Initialization (SFI), load the control in safe mode and use persisted values (if any). If not SFI, load in unsafe mode with persisted values (if any), or use the default (first-time initialization) settings. Does not trigger a prompt.
  3. If marked SFI, load the control in unsafe mode and use persisted values (if any). If not SFI, prompt with message that it is marked unsafe. If the user chooses No at the prompt, do not load the control. Otherwise, load it with default (first-time initialization) settings.
  4. If SFI, load the control in safe mode and use persisted values (if any). If not SFI, prompt that it is marked unsafe. If the user chooses No at the prompt, do not load the control. Otherwise, load it with default (first-time initialization) settings.
  5. If SFI, load the control in unsafe mode and use persisted values (if any). If not SFI, prompt that it is marked unsafe. If the user chooses No at the prompt, do not load the control. Otherwise, load it with persisted values.
  6. If SFI, load the control in safe mode and use persisted values (if any). If not SFI, prompt that it is marked unsafe. If the user chooses No at the prompt, do not load the control. Otherwise, load it with persisted values.

More Information

Description of the security update for Outlook 2007: September 12, 2017
Description of the security update for Outlook 2010: September 12, 2017

Custom Form Security Changes was last modified: March 16th, 2026 by Diane Poremsky
Post Views: 369

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Mastodon (Opens in new window) Mastodon
  • Email a link to a friend (Opens in new window) Email

Related Posts:

  • Excel Files Won't Display in Reading Pane
  • Assign a custom form to existing Outlook items
  • Outlook Windows Store Registry
  • Calling from an Outlook Contact does not work

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Comments

  1. George says

    September 11, 2022 at 6:58 pm

    Hi guys, I struggled most of tonight trying to get form control button to work without success. Eventually I gave up. Good news is I think Active X Control Button might do the trick achieving something similar.

    There are two types of buttons that user can add on a worksheet.

    • Form Control Button (METHOD 1)
    • ActiveX Control Button (METHOD 2)

    METHOD 1 (Form Control Button) which I tried and could not get to work, and I gave up.
    ====================================================================
    I had a play with Outlook 2019 form VBScript, trying to create some sort of intelligent CommandButton1_Click().
    I am using offline 64 bit desktop version Outlook 2019 , on 64 bit Windows 10 .
    I tried tutorials from these 3 links shown below, and could not get the button to work (as in there is a button; the button is clickable from inside Outllook 2019 Appointment form, but does nothing).  
    https://stackoverflow.com/questions/54329511/how-do-i-hook-into-a-button-click-event-on-a-custom-form
    https://www.slipstick.com/developer/custom-form/create-hyperlink-outlook-form/
    https://www.slipstick.com/outlook/custom-form-security/
    I applied Diane's registry hacks and unforunately still the VBScript would not run on clicking the CommandButton1.

    METHOD 2 (Active X Control Button) which worked for me
    =============================================
    Apparently there is another way to get a CommandButton1 going. You don't have to trigger from within a form. 
    You can trigger it as an ActiveX Control Button. This occurs at a level above/outside of the form.  
    Following these two links shown below, I was able to construct a CommandButton1 that actually does something when clicked. 
    I have not dived into coding this ActiveX Control Button to manipulate the desired current appointment, but I am hopeful it's achievable. Checkout the reply from al1en from the first link shown below. He explains the two methods to do button well.
    https://superuser.com/questions/536134/how-do-i-change-the-name-of-a-command-button-in-excel
    https://analysistabs.com/vba-code/excel-userform/commandbutton/
    The second link applied to Excel. But I was able to apply the same approach to Outlook no problem. Some of the tools he mentioned are hiding inside the menus along the top, you can look for them.

    You might find these useful (if you can't find where they are):

    Developer ->
    INSERT -> UserForm
    VIEW -> Code
    VIEW -> Toolbox

    Reply
  2. Filip says

    February 13, 2020 at 10:08 am

    The office 2013 in which all works fine is at the picture. After KB4475563 even with your registry - crippled. Not working.
    Office 2019 first verison, ok, running, Today's version: Crippled.
    I believe the same will be valid for 2016.

    Reply
  3. Filip says

    February 13, 2020 at 9:38 am

    Hi Diane,
    I am frustrated. I use customized Forms over 20 years. Some time ago I discovered the registry keys here. I successfully aplied them for the versions of Office where my soluytions stopped working.
    However.

    Office 2019.

    After I install 32-bit EN version of Outlook 1812 Build 11126.20188 Click To Run, everything still works (of course I have to do the rocket science with all the Registry you describe here).

    If, however I check File - Account - Office Updates and let him update to the last version..... guess what. It again stops working. regardless registry.

    I have the same experience in Company notebook with Office 2016 where some KB fix is installed that causes scripts stop working. Regardless registry. I think it is this one: KB4475563.

    This is a real Hell. Nigtmare. Hours, days spent in hopeless tests anger and despair. I think we shall say bye bye to our solutions in long term. I spent years to grow the solutions and I have to start from scratch but I have no idea which platform to choose now. This one lasted at least 22 years. Now MS Office team does not understand the product. They cripple it with every new version.

    Is there some chance someone could ping the MS team to fix this Form functionality to still keep it working even after upgrades ? I have no clue what is "security--related" about it now.

    I was hoping Diane that you have some channel to push this through.
    For now, I have disabled updates at Office but this workaround will end some day.

    Thanks a lot for this article again and have a nice day

    Reply
  4. Brett says

    October 30, 2019 at 2:36 pm

    Hi folks. Just finding this as we are finally switching to newer Outlook. Reg keys work fine. The odd thing i see is that when editing the form is that if i so much as open the script editor (View Code), the code no longer works. I have to save, close, re-open to get it working again.

    I have added the name of my custom form in the reg keys, and it does work when i first open it!

    Any ideas? Thanks!

    Reply
  5. Filip says

    April 7, 2019 at 5:51 pm

    Oh my God ! People in MS who take care of Outlook must have fallen onto their heads. I am half dead after having found your post here. Good news in bad news. The good one is, registry workaround works. But I will get mad soon. One of the greatest advantages was that VBS worked seamlessly everywhere synced at replicas !! They literally killed this feature. It is against it's nature. I needed 1 hour to understand and implement the registry branches. I curse the one who decided to cripple Outlook this way. Thank you Diane, you saved my life. Is there any power on the earth how to make Outlook back functional without spending a day tweaking? I also used VBScript at the form to generate GUID. I had to spend several hours to arrive at this: https://support.microsoft.com/en-us/help/4036837/run-time-error-70-permission-denied-generate-guid-with-office-vba Oh MY GOD. They recommend to use Visual Basic instead which does not work at the forms. How the he*l can be generating GUID dangerous or unsafe. When I combine it with this hack I arrive at one day hacking my Outlook to work again. Nigtmare. I wonder what they come with the next version.

    Reply
    • Diane Poremsky says

      April 7, 2019 at 10:09 pm

      I have no idea why generating the guid is dangerous, but they have been doing a lot to block obscure exploits, including run a script rules and vbscript controls.

      https://support.office.com/en-us/article/VBScript-controls-blocked-in-Office-365-client-applications-8937ad5a-01a1-48d2-8595-910116907876

      Reply
  6. Paul Sawchuk says

    January 7, 2019 at 2:45 pm

    Diane, thank you for this article! Any indication if MS will deprecate support for VBScript in custom forms at some point?

    Reply
    • Diane Poremsky says

      January 8, 2019 at 12:12 am

      It's not on the roadmap. They need to maintain backwards compatibility but may eventually disable it - but not for a very long time.

      Reply
  7. Roy Glixon says

    November 17, 2018 at 7:26 am

    Outlook 2019 form scripting does not work, even with the published registry patches. I have opened a high priority Microsoft support case after proving the malfunction. I have also added a request to the Microsoft uservoice site. Please access the site and vote on that posting to get scripting working again in the new version.

    https://outlook.uservoice.com

    Roy Glixon
    Silver Partner

    Reply
    • Diane Poremsky says

      November 17, 2018 at 8:02 am

      It's the same codebase as an outlook 365/2016 build from summer, so it should work. I'll see what my support contact knows.

      Reply
  8. Dawn says

    July 19, 2018 at 6:19 pm

    I had this working fine on my previous Dell laptop but I just got a new laptop this week and when I installed Microsoft Office these registry strings do not exist. Both laptops are Windows 10 Pro 64 bit and Office 32 bit. Any suggestions?

    Reply
    • Diane Poremsky says

      July 20, 2018 at 1:01 am

      You need to add the keys if they do not exist.

      Are you using the preinstalled version of office? The keys should work with it - but it uses a virtual registry and you wont see any of the keys outlook adds.

      Reply
      • Danny says

        September 8, 2018 at 2:56 am

        Hi Diane, what about for Organizational Forms Library. Does the key still works.

        Thanks,

      • Diane Poremsky says

        September 21, 2018 at 12:22 am

        Yes, it should. If its not working for you. let me know. Thanks.

  9. Dave Michaels says

    May 23, 2018 at 1:35 pm

    Hi Diane,

    Any update on this regarding Public Folder custom forms?

    Many thanks!

    Reply
    • Diane Poremsky says

      May 23, 2018 at 5:32 pm

      I thought I saw something a couple of weeks ago - but can't recall if it was in a kb or something from my support contact. I'll check on it. (That will teach me for not reading it immediately. :))

      Reply
  10. David Grice says

    May 3, 2018 at 11:05 pm

    This is slightly OT, sorry, but I was wondering if you had any ideas about how I could access the Outlook object model in order to return the VBScript behind it.

    I have a spreadsheet that trawls across multiple network folders searching for various files (*.vbs, *.hta, *.xlsm, *.accdb, etc) and retrieves all the code behind them. For Excel it access the project object and retrieves all code in all modules.

    I am doing this so our security teams have a clear picture of all the user-generated code across the network, and only have Outlook forms left to do.

    I guess I need to get to the MailItem object but have no idea how to access the VBScript code programmatically.

    With what I have for all the other file types I can now identify all the links between all the files and identify any malicious code.

    Reply
    • Diane Poremsky says

      May 23, 2018 at 5:28 pm

      As far as I know, you can't read the script behind the form using VBA - it can execute it. I don't think Redemption (http://www.dimastr.com/redemption/home.htm) can do it - but that would probably be the best chance.

      Reply
  11. Warren Chan says

    April 11, 2018 at 8:42 pm

    Hi Diane, thanks for all your input over the years. With this issue, your solutions works for me once the security updates have been uninstalled and registry key edits made. If i then re-install the security updates, it stops working. Can the uninstalled security updates be reinstalled or should they be blacklist from our updates?

    Reply
    • Diane Poremsky says

      April 12, 2018 at 7:33 pm

      once the keys are set, it should work with the updates installed - that is the purpose of the reg entries. :) Are the forms in shared mailboxes? Some people are having problems with that but i don't have a solution for that at this time.

      Reply
      • Warren Chan says

        April 12, 2018 at 8:02 pm

        Thanks Diane. The forms are in a public folder saved in the folder forms library. Outlook runs on a PC with Win 7 Pro with Office 2010 (both 32 bit)

      • Diane Poremsky says

        April 14, 2018 at 8:05 pm

        That is probably why the key isn't helping - its basically the same problem with shared mailboxes.

  12. AndrewJ says

    March 14, 2018 at 2:22 am

    Hi, Firstly thanks to everyone who contributed to this discussion.
    Secondly we are seeing this exact issue with a calendar form and I was wondering if there is any new information has become available since December 2017.

    Thanks in advance...

    Reply
    • Diane Poremsky says

      March 14, 2018 at 10:48 pm

      I'm not aware of any new information - you will need to add the ipm of the form in the registry.

      Reply
      • AndrewJ says

        March 15, 2018 at 12:36 am

        Diane,
        Thanks for the response. We have added the IPM of the form details to the registry and can now get our form to run when the calendar owner is using it. However, it still wont run when the is accessed from a shared folder.

        When the form is used from a shared folder the VBA behind the form doesnt is blocked by something from running.

      • Diane Poremsky says

        March 15, 2018 at 12:52 am

        Yeah, others have had issues with shared folders. Microsoft insists they should work. I'll bug them about it again.

  13. Pallavi says

    December 20, 2017 at 11:01 pm

    hi Diane,
    We also have Custom forms which have stopped working on the latest Outlook 2016 build version . Until September 2017 Outlook builds, and after the mess of June security updates, we at least had a solution to either add the registry fix or downgrade the Outlook version. This enabled the custom forms. But after September 2017, none of the registry fixes or downgrade options are working and hence none of our custom forms are working. the business is affected. Could you please advise any solution on this latest Outlook build?

    Reply
    • Diane Poremsky says

      December 23, 2017 at 12:12 am

      The registry key should definitely fix the issue after the Sept updates. You need to set these two keys, repeating the form name in the TrustedFormScriptList key for each form.
      HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Outlook\Security
      DWORD: DisableCustomFormItemScript
      Value: 0 (to enable)
      HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\16.0\Outlook\Forms\TrustedFormScriptList
      REG_SZ: IPM.Contact.custom-form-name
      Value: (leave blank)

      Reply
  14. Marc says

    November 17, 2017 at 9:47 am

    Hi Diane,

    the keys don't work for appointment forms if the appointment is in another users calendar. It only works for your own calendar. Is there a solution?

    Cheers
    marc

    Reply
    • Diane Poremsky says

      November 18, 2017 at 8:57 pm

      It's supposed to... is the form name the same in that calendar? If not, you need to add the form name to your registry.

      Reply
      • Marc says

        November 20, 2017 at 3:22 am

        Hi Diane,

        same form, same name.

        People also report this problem, on TechNet. See the last posts.

        In our case, managers open appointments in their team members calendars. VBS is not executed in the appointment form. Even if the managers have full access on the calendars. Everything worked before the patch. VBS is executed when people open appointments in their personal calendar. Seems like the registry settings only work for personal calendars.

        Cheers
        Marc

      • Diane Poremsky says

        November 20, 2017 at 7:11 am

        i'll try to repro again - i know gabe and I both tried to repro it when the key first came out and the first complaints came in, but we weren't able to.

        Did you also try this key - this would only fix issues with controls, not code behind the form.
        HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\outlook\Security\AllowActiveXOneOffForms
        DWORD: AllowActiveXOneOffForms
        Value: 1

      • Paul says

        November 21, 2017 at 2:15 pm

        Doesn't work for me - script is still not running when the form is run from a shared folder.

      • Diane Poremsky says

        November 21, 2017 at 2:32 pm

        Is the shared mailbox cached locally?

      • Marc says

        November 28, 2017 at 5:00 am

        Doesn't work for me as well. Where do I change the caching behaviour?
        Our scenario: We create appointments in our employees calendars by the exchange API. The message class is custom like: IPM.Appointment.Our-Special-Type. We have an outlook form for that class provided for all users over the organisational forms within outlook/exchange. We use outlook 2013 and 2016. The VBS in the form runs with your recommended RegKeys in my personal calendar on my own appointments. It doesn’t run on appointments in calendars of my colleagues when I open them in my outlook. This was working before the security updates. All we need to do was to allow scripts in shared and public folders in the Trust Center under E-Mail Security. But changes there has no effect since the patch.

      • Diane Poremsky says

        November 29, 2017 at 1:25 am

        In File, Account settings, double click on your account then click More Settings. The caching settings for shared folders is there.

      • Marc says

        December 1, 2017 at 3:15 am

        Exchange Cache Mode? Is active, but doesn't change the behaviour if we deactivate it.

      • Pallavi says

        December 22, 2017 at 3:18 am

        Same problem we have , the registry fix just does not seem to affect the shared calendars and we are unable to run our custom forms. Any help on this is really appreciated, all our users are blocked for now

      • Diane Poremsky says

        December 23, 2017 at 12:07 am

        I'll remind them I'm waiting for an answer - my contact was out of the office for awhile (and is out for the holidays) so I can't say when i'll know anything.

      • Jörg says

        February 11, 2018 at 8:45 am

        I can contribute the following information to the problem:

        The error message only occurs for appointment-forms that contain Microsoft Forms 2.0 controls and are assigned to shared calendar folders of other Exchange users.

        For example, if the standard appointment form is changed in such a way that only Outlook controls are positioned on page 2 of the form and on page 3 a Microsoft Forms 2.0 element (e. g. Edit-Element) is inserted (without any VBScript), the form opened without an error message, but when switching to page 3, the following error message is displayed:
        "To help prevent malicious code from running, one or more objects in this form were not loaded. For more information, contact your administrator."

        The problem also occurs in Outlook version 15.0.4997.1000 (January 2018), although all registry entries are set according to the instructions.
        It does not matter whether the form was published in organizational forms library or personal forms library.
        The form works normally in public calendar folders that were created additionally (no Exchange users).
        In Outlook version 15.0.4927.1002 (May 2017) the form works fine in all calendar folders.

      • Paul says

        December 8, 2017 at 3:34 pm

        I've enabled both checkboxes to cache locally and restarted Outlook, but it didn't help. Shared Calendars still don't run any vb script. Do those registry settings need to be changed on the exchange server or something?

        Has anyone been able to get code to run in a custom appointment on a shared calendar?

  15. ABCD says

    November 15, 2017 at 4:10 pm

    Perfect...works great..Thanks a lot Diane

    Reply
  16. Dave Gerrard says

    November 13, 2017 at 8:28 pm

    Hi Diane,
    We had this problem and solved by uninstalling the specific Outlook patches however it appears that the issue is being repeated on a new Windows 10 pc running Office 2013.
    Do you know if the reg hacks above will work in Windows 10? or is there something else in Windows 10 that is stopping the Outlook Forms from loading properly.
    Cheers,
    Dave

    Reply
    • Diane Poremsky says

      November 14, 2017 at 12:14 am

      The hacks are specific to outlook, not windows, so yes, they will work.

      Reply
  17. Neil says

    October 27, 2017 at 5:49 am

    We have a problem, although this fix works when applying the registry per form, there are hundreds of contacts discovered and hundreds we probably haven't discovered with this problem.

    Is there a way to apply this fix for all form names?

    Reply
    • Diane Poremsky says

      November 15, 2017 at 11:40 pm

      You need to run a script to pull in all of the form names (but only from org library) and set registry keys for them. Microsoft support has the script available here - Script & Instructions to get form names from org library

      Reply
    • Diane Poremsky says

      November 16, 2017 at 12:51 am

      I added a VBA macro to the page that creates a .reg file with the custom form classes (for 64-bit windows, 32-bit Outlook 2016 - that needs edited for other versions).

      Reply
  18. David says

    October 25, 2017 at 12:17 pm

    I have an Add-in (TimeMeter) installed on an Office 2010 system. The form quits working every time the Microsoft updates apply. I have been uninstalling the updates (June and September) up to now, but would prefer to fix via registry. Problem is I can't figure out how to find the form and then the message class for that form.
    Are there powershell commands I can run to get a list of forms and their message classes? If not, how do I search my outlook to find the form name and message class?

    Reply
    • Diane Poremsky says

      November 15, 2017 at 11:41 pm

      there is a script - Script & Instructions to get form names from org library - but if its just one form (or a limited number), add the message class field to a list view and copy the form name from that field.

      Reply
      • Diane Poremsky says

        November 15, 2017 at 11:42 pm

        actually, that may not help you - it only sumps org library forms, not personal forms.

    • Diane Poremsky says

      November 16, 2017 at 12:50 am

      I added a VBA macro to the page that creates a .reg file with the custom form classes (for 64-bit windows, 32-bit Outlook 2016 - that needs edited for other versions).

      Reply
  19. Christian says

    October 24, 2017 at 11:28 am

    Thank you so much Diane. This works perfectly with my Office 2016/Win 8.1.

    Reply
  20. Mike says

    October 16, 2017 at 3:58 pm

    Wondering is you know of any work around for Custom Forms that have code embedded in it.

    Sub Item_Open()
    If (instr(item.subject,"RE:")) = 0 And (item.attachments.count > 0) then
    item.HTMLBODY = "Please review the attached invoice(s). Once reviewed please choose the <b><u>APPROVE</u></b> or <b><u>DENY</u></b>" &_
    " button located above.<br><br>" & "Total Number of Attachments: " & item.attachments.count & "<br><hr> Accounting"
    setButtonState True

    else

    setButtonState False

    End if
    Item.save
    End Sub

    Sub CommandButton1_Click()
    TakeAction "APPROVED"
    'msgbox("Approved")

    item.Forward
    End Sub

    Sub CommandButton2_Click()
    TakeAction "DENIED"
    'msgbox("Denied")

    End Sub

    Sub TakeAction(strAction)
    Dim objMail, objItem
    Set objMail = Item.Forward
    With objMail
    .To = "invoices@haugpartners.com" 'Item.SenderEmailAddress
    .HTMLbody = "Invoice(s) attached to the e-mail have been " & strAction
    .OriginatorDeliveryReportRequested = True

    If msgbox("Do you want to edit the Message" & vbcrlf & "before sending....",4,"Sending.....") = vbYes then

    .Display
    Item.close olSave

    else
    .send
    Item.close olSave

    End if

    End with
    'item.save
    'Item.close olSave

    Set objItem = Nothing
    Set objMail = Nothing

    End Sub

    Sub SetButtonState(bolState)
    dim objPage, objCntl
    Set objPage = Item.GetInspector.ModifiedFormPages
    Set objCntl = objPage("Message").Controls("CommandButton1") ' This is the line I am getting the error from
    objCntl.visible = bolState
    Set objCntl = objPage("Message").Controls("CommandButton2")
    objCntl.visible = bolState
    Set objPage = Nothing
    Set objCntl = Nothing
    End Sub

    Reply
    • Diane Poremsky says

      October 17, 2017 at 10:43 pm

      The registry key that sets DisableCustomFormItemScript & TrustedFormScriptList should fix this. You'll need to restart Outlook after setting the key.

      Reply
  21. Magnus says

    September 27, 2017 at 3:17 pm

    Many thanks Diane, this information is absolutely vital and the suggested fix worked perfectly for my OL 2013 on Win 10, both 64 bits. Having spent days designing a custom task form just to see the functionality vanish twice after implementing required updates from Microsoft is not a pleasant experience, and hardly feasible in the long run. I would be lost without web sites like this one.

    Reply
  22. Bill says

    September 16, 2017 at 3:49 pm

    Thanks. This is a life-saver. I have 32-bit Office 2010 running on 32-bit Windows. That works perfectly. However on a different system, using the registries shown for 32-bit Office running on 64-bit Windows is not working for me. Any thoughts?

    Reply
    • Diane Poremsky says

      September 16, 2017 at 4:57 pm

      What version of office is on the other computer? If 2013/2016, is it a subscription? (I tested 3 of the 32/win64 keys - didnt test 2013.)

      Is the form name correct?

      Reply
      • Joseph Awe says

        September 22, 2017 at 3:42 pm

        This is not working for me either. I have Office 365 version of Outlook 32bit version 1708 (build 8431.2079). I have entered all the keys and none of my 7 custom forms with form scripts work.

      • Diane Poremsky says

        September 22, 2017 at 4:41 pm

        Are you using 32 or 64 bit windows? Did you restart Outlook - and verify the form names are correct in the registry?

      • Joseph Awe says

        September 22, 2017 at 5:01 pm

        I am using WIndows 7 Pro 64bit.
        I am using Office 365 version of Outlook 32bit version 1708 (build 8431.2079).
        All registry entries were made.
        Outlook 2016 was restarted and the fix did not work.
        The computer was restarted, then Outlook started, and the fix did not work.

        This is also occurring on a WIndows 10 Pro 64bit computer.
        I am using Office 365 version of Outlook 32bit version 1708 (build 8431.2079)..
        Registry fixes di not fix the problem.

        This problem does NOT exist on a Win 10 Pro 64bit computer running Office 365 version 1701 build (7766.2099)

      • Diane Poremsky says

        September 27, 2017 at 12:53 am

        >> This problem does NOT exist on a Win 10 Pro 64bit computer running Office 365 version 1701 build (7766.2099)
        Yeah, it's new. I tested it with 32bit Outlook (all 4 versions) on Win 64bit (7,8.1,10)- the keys work. Did you use the reg key file or type it in yourself? (Try the file.)

      • Joseph Awe says

        September 27, 2017 at 12:08 pm

        Further info...
        All entries are correct in my Reg settings. The name of the form is fully qualified without spaces (e.g. IPM.Task.TB_Ticket).

        What I discovered is that existing items (contact, task, note or appoinment) work on non 1708 version of Office 365 Outlook 2016 32bit with this reg fix, but...

        It does not work when NEW items using a custom form with a script inside are created.

        I have 3 custom forms in my Contact folder.
        IPM.Contact.TB_Company
        IPM.Contact.TB_Contact
        IPM.Contact.TB_Employee.

        For existing items, the custom script works.

        For new items, the reg fix allows TB_Company to run but not TB_Contact nor TB_Employee. It just displays the "To help prevent malicious code" error an does not run the script.

        I will be doing further testing.

      • Diane Poremsky says

        September 28, 2017 at 12:51 am

        I know for forms designer, you need an entry for IPM.Contact - I wonder if that would work for new forms. (New forms work here, but i have set IPM.Contact to test forms designer too.)

      • Diane Poremsky says

        September 27, 2017 at 12:56 am

        Oh, and make sure the message class name is correct. It tested it with messages classes that did not contain spaces - if yours contain spaces, try it both with and without double quotes around the name.

      • Joseph Awe says

        September 26, 2017 at 5:08 pm

        This problem exists in both WIndow 7 32bit and 64 bit
        Windows 10 64 bit.

        Current 1708 (build 8431.2079 Click-to-Run).

        This is with the following settings in the Trust Center
        Email Security
        check - Allow script in shared folders
        check - Allow script in Public Folders

        Macro Settings
        Enable all macros

      • Diane Poremsky says

        September 27, 2017 at 12:50 am

        Correct, all versions are affected - it's a new change and affects Outlook 2007 and up. Those settings don't control this change - you need to set the registry key as it is not exposed in the interface.

      • Paul says

        December 8, 2017 at 3:37 pm

        @Joseph is it on a shared calendar or shared mailbox? I'm able to get the registry fix to work on personal folders but not shared ones. I'm wondering if the registry keys need to be applied on the exchange server.

      • Diane Poremsky says

        December 9, 2017 at 12:04 am

        >> registry fix to work on personal folders but not shared ones.
        this is a common problem.

      • Paul says

        December 11, 2017 at 9:38 am

        >> >> registry fix to work on personal folders but not shared ones.
        >>this is a common problem.

        Is there a solution? If there is no solution, do you know if Microsoft is working on a patch? I haven't been able to get any further information on this.

      • Diane Poremsky says

        December 23, 2017 at 12:10 am

        I'm waiting to here - I will send a reminder, but not really expecting an answer until after the new year.

      • Eric Kromps says

        September 20, 2018 at 12:31 pm

        OK, we've just run into this ourselves. Works great on personal folders but not on shared folders. Any update on this issue since December 2017?

      • Diane Poremsky says

        September 21, 2018 at 12:21 am

        No, no update. Sorry.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 31 Issue 10

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Deleting Auto-Complete Entries No Longer Works
  • Use Classic Outlook, not New Outlook
  • How to Remove the Primary Account from Outlook
  • How to Hide or Delete Outlook's Default Folders
  • Removing Suggested Accounts in New Outlook
  • Disable "Always ask before opening" Dialog
  • Change Outlook's Programmatic Access Options
  • Reset the New Outlook Profile
  • Adjusting Outlook's Zoom Setting in Email
  • Duplicate Remover Tools
  • Deleting Auto-Complete Entries No Longer Works
  • Sync Issues and Errors with Gmail and Yahoo accounts
  • Error Opening iCloud Appointments in Classic Outlook
  • Opt out of Microsoft 365 Companion Apps
  • Mail Templates in Outlook for Windows (and Web)
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Deleting Auto-Complete Entries No Longer Works

Sync Issues and Errors with Gmail and Yahoo accounts

Error Opening iCloud Appointments in Classic Outlook

Opt out of Microsoft 365 Companion Apps

Mail Templates in Outlook for Windows (and Web)

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

VBA Basics

How to use the VBA Editor

Work with open item or selected item

Working with All Items in a Folder or Selected Items

VBA and non-default Outlook Folders

Backup and save your Outlook VBA macros

Get text using Left, Right, Mid, Len, InStr

Using Arrays in Outlook macros

Use RegEx to extract message text

Paste clipboard contents

Windows Folder Picker

Custom Forms

Designing Microsoft Outlook Forms

Set a custom form as default

Developer Resources

Developer Resources

Developer Tools

VBOffice.net samples

SlovakTech.com

Outlook MVP David Lee

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2026 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.