View Single Post
  #3  
Old December 23rd 07, 08:25 PM posted to microsoft.public.outlook.program_vba
Chenna Krishna[_2_]
external usenet poster
 
Posts: 2
Default How to run my Mcros that i have created in VB editor?

Yes it is in the hisOutlookSession only.
I have reduced the macro security level to low also and executed but no
results.

"Ken Slovak - [MVP - Outlook]" wrote:

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



Ads