Groups | Blog | Home
all groups > dotnet faqs > october 2006 >

dotnet faqs : VB script does not run


Sandy
10/25/2006 1:46:02 PM
I have added aVB script to check if subject is blank before email is sent. It
does not work for my laptop .. it works on my oclleagues machine.
What settings do I have to make/modify to enable it on my machine.

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

Dim strSubject As String

strSubject = Item.Subject

If Len(strSubject) = 0 Then

Prompt$ = "Subject is Empty. Are you sure you want to send the
Mail?"

If MsgBox(Prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground,
"Check for Subject") = vbNo Then

Cancel = True

End If

End If

End Sub

wll appreciate help.

Rgds
Scott M.
10/25/2006 7:06:28 PM
Well, since .NET does not use VBScript, it's not hard to figure out why it
wouldn't work.


[quoted text, click to view]

AddThis Social Bookmark Button