1
votes

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?

1
You say 'VBScript' - is it really VBScript, or VBA? - Paul
I click ViewCode on form. There is additional button to open VisualBasic editor. Maybe I should use this? - Piotr Perak
If you're viewing the code, I would believe that you're actually using VBA (Visual Basic for Applications). I would retag your question with VBA - you're more likely to get more results that way. - Paul
VBA is something different. There are two editors. - Piotr Perak
Ah! Okay. Apologies. - Paul

1 Answers

1
votes

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