Piotr Perak
Piotr Perak

Reputation: 11118

How to enable VBScript for custom form?

I created custom Outlook form based on Message form (class IPM.Note). I added one custom label and dropdown (now class IPM.Note.MyCustomMessage). I added simple script just to test if it is running.

Function Item_Open()
    MsgBox "Opening"
End Function

But nothing was hapenning. I tried with Item_Send too.

Then I found that it's possibly due to security settings so I modified registry to enable scripting like described here: https://support.office.com/en-us/article/custom-form-script-is-now-disabled-by-default-bd8ea308-733f-4728-bfcc-d7cce0120e94. I also went to Trust center to Allow script in shared folders and Allow script in Public folders but still no success. Script does not run.

What else can I try?

Upvotes: 2

Views: 553

Answers (1)

Piotr Perak
Piotr Perak

Reputation: 11118

It turned out I didn't have macros enabled. I didn't now VBScript counts as macros. I thought macros are VBA only.

Upvotes: 0

Related Questions