Thread
:
How to run my Mcros that i have created in VB editor?
View Single Post
#
2
December 23rd 07, 08:10 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
Posts: 5,848
How to run my Mcros that i have created in VB editor?
Is it in the ThisOutlookSession class module?
Are macros enabled for running in Tools, Macro, Security?
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Chenna Krishna" Chenna
wrote in message
...
Hi,
I have used the follwing code in the VB editor.
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim strSubject As String
strSubject = Item.Subject
If Len(Trim(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
The above code should not send any message from my outlook which has empty
subject. The problem that i face is it has worked successfuly when i have
done first time but now its not executing.
Please help me in this regard.
Thanks in advance,
Regards,
Chenna Krishna
Ken Slovak - [MVP - Outlook]
View Public Profile
View message headers
Find all posts by Ken Slovak - [MVP - Outlook]
Find all threads started by Ken Slovak - [MVP - Outlook]
Ads