A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Set Warnings Macro



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 2nd 06, 04:57 PM posted to microsoft.public.outlook.program_vba
Donbenz
external usenet poster
 
Posts: 4
Default Set Warnings Macro

I am trying to run a set warnings macro for everytime I send a message does
anyone have any Ideas how to set that up?

Donbenz
  #2  
Old June 2nd 06, 05:48 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Set Warnings Macro

Put code in the Application_ItemSend event handler in the built-in ThisOutlookSession module.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Donbenz" wrote in message ...
I am trying to run a set warnings macro for everytime I send a message does
anyone have any Ideas how to set that up?

Donbenz

  #3  
Old June 2nd 06, 06:06 PM posted to microsoft.public.outlook.program_vba
Donbenz
external usenet poster
 
Posts: 4
Default Set Warnings Macro

Sue
I am not familiar with this could you explain in a little more detail.

"Sue Mosher [MVP-Outlook]" wrote:

Put code in the Application_ItemSend event handler in the built-in ThisOutlookSession module.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Donbenz" wrote in message ...
I am trying to run a set warnings macro for everytime I send a message does
anyone have any Ideas how to set that up?

Donbenz


  #4  
Old June 2nd 06, 06:11 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Set Warnings Macro

Sample code:

Private Sub Application_ItemSend _
(ByVal Item As Object, Cancel As Boolean)
Dim strMsg As String
Dim res As Long
If Item.Subject = "" Then
Cancel = True
strMsg = "Please fill in the subject before sending."
MsgBox strMsg, _
vbExclamation + vbSystemModal, "Missing Subject"
Item.Display
End If
End Sub

For a more elaborate version that also checks for expected attachments, see http://www.outlookcode.com/codedetail.aspx?id=553

And for VBA basics, see http://www.outlookcode.com/d/vbabasics.htm


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Donbenz" wrote in message ...
Sue
I am not familiar with this could you explain in a little more detail.

"Sue Mosher [MVP-Outlook]" wrote:

Put code in the Application_ItemSend event handler in the built-in ThisOutlookSession module.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Donbenz" wrote in message ...
I am trying to run a set warnings macro for everytime I send a message does
anyone have any Ideas how to set that up?

Donbenz


  #5  
Old June 2nd 06, 06:27 PM posted to microsoft.public.outlook.program_vba
Donbenz
external usenet poster
 
Posts: 4
Default Set Warnings Macro

Sue,

When i try to load the code into my macro the saved macro disappears. Maybe
I am not setting it up right. I think it has some thing to do with the
Private Sub verses just the Regular Sub.

Thank You

"Sue Mosher [MVP-Outlook]" wrote:

Sample code:

Private Sub Application_ItemSend _
(ByVal Item As Object, Cancel As Boolean)
Dim strMsg As String
Dim res As Long
If Item.Subject = "" Then
Cancel = True
strMsg = "Please fill in the subject before sending."
MsgBox strMsg, _
vbExclamation + vbSystemModal, "Missing Subject"
Item.Display
End If
End Sub

For a more elaborate version that also checks for expected attachments, see http://www.outlookcode.com/codedetail.aspx?id=553

And for VBA basics, see http://www.outlookcode.com/d/vbabasics.htm


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Donbenz" wrote in message ...
Sue
I am not familiar with this could you explain in a little more detail.

"Sue Mosher [MVP-Outlook]" wrote:

Put code in the Application_ItemSend event handler in the built-in ThisOutlookSession module.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Donbenz" wrote in message ...
I am trying to run a set warnings macro for everytime I send a message does
anyone have any Ideas how to set that up?

Donbenz


  #6  
Old June 2nd 06, 06:30 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Set Warnings Macro

Please provide exact steps that you followed.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Donbenz" wrote in message ...
Sue,

When i try to load the code into my macro the saved macro disappears. Maybe
I am not setting it up right. I think it has some thing to do with the
Private Sub verses just the Regular Sub.

Thank You

"Sue Mosher [MVP-Outlook]" wrote:

Sample code:

Private Sub Application_ItemSend _
(ByVal Item As Object, Cancel As Boolean)
Dim strMsg As String
Dim res As Long
If Item.Subject = "" Then
Cancel = True
strMsg = "Please fill in the subject before sending."
MsgBox strMsg, _
vbExclamation + vbSystemModal, "Missing Subject"
Item.Display
End If
End Sub

For a more elaborate version that also checks for expected attachments, see http://www.outlookcode.com/codedetail.aspx?id=553

And for VBA basics, see http://www.outlookcode.com/d/vbabasics.htm


--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Donbenz" wrote in message ...
Sue
I am not familiar with this could you explain in a little more detail.

"Sue Mosher [MVP-Outlook]" wrote:

Put code in the Application_ItemSend event handler in the built-in ThisOutlookSession module.


"Donbenz" wrote in message ...
I am trying to run a set warnings macro for everytime I send a message does
anyone have any Ideas how to set that up?

Donbenz


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tacking Macro Bob_BLC Outlook and VBA 8 December 5th 07 07:00 AM
How do I disable Show Network Warnings in Outlook? Ben Whiting Outlook - Installation 1 March 23rd 06 01:36 PM
can OoO be set automatically if calendar set to Out of Office? FZ6 Outlook - Calandaring 1 March 8th 06 07:02 PM
How to set due date for a Category of Tasks? Or set any field that applies to the whole category? [email protected] Outlook - Calandaring 1 February 4th 06 09:23 PM
overdue warnings Ponch Outlook - General Queries 1 January 23rd 06 03:06 PM


All times are GMT +1. The time now is 07:02 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.