![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |