![]() |
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 |
#11
|
|||
|
|||
![]()
Hi
i've never created a script before and hope i have done it correctly i opened ToolMacroVisual Basic Editor inserted a new module copied in Public Sub Whatever(Mail As Outlook.MailItem) Mail.Subject = Date & " " & Mail.Subject Mail.Save End Sub and saved then in ToolsRules and Alerts and created a new rule Apply this rule after the message arrives on this machine only run Project1.Whatever i ran it on my inbox an sent myself an email and nothing happens im on office outlook 2003 SP2 many thanks Darren |
Ads |
#12
|
|||
|
|||
![]() Does it make a difference if you move the code from the module to ThisOutlookSession? (Don't forget to edit the rule, too.) If not, set a breakpoint (f9) on the first line of code. Does the code execution stopps there when a new message arrives? -- Best regards Michael Bauer - MVP Outlook Category Manager - Manage and share your categories: SAM - The Sending Account Manager: http://www.vboffice.net/product.html?lang=en Am Fri, 7 May 2010 10:47:41 +0100 schrieb DarrenD: Hi i've never created a script before and hope i have done it correctly i opened ToolMacroVisual Basic Editor inserted a new module copied in Public Sub Whatever(Mail As Outlook.MailItem) Mail.Subject = Date & " " & Mail.Subject Mail.Save End Sub and saved then in ToolsRules and Alerts and created a new rule Apply this rule after the message arrives on this machine only run Project1.Whatever i ran it on my inbox an sent myself an email and nothing happens im on office outlook 2003 SP2 many thanks Darren |
#13
|
|||
|
|||
![]()
I have copied it to the ThisOutlookSession and created a new rule to pick it up
i set the breakpoint on the line Mail.Subject = Date & " " & Mail.Subject sent a couple of emails to the account and they still got delivered without any date in the subject bar Quote:
|
#14
|
|||
|
|||
![]() So the code execution doesn't stop there? Then check Tools/Macros/Security, whether VBA is executed at all. -- Best regards Michael Bauer - MVP Outlook Category Manager - Manage and share your categories: SAM - The Sending Account Manager: http://www.vboffice.net/product.html?lang=en Am Fri, 14 May 2010 16:42:29 +0100 schrieb DarrenD: I have copied it to the ThisOutlookSession and created a new rule to pick it up i set the breakpoint on the line Mail.Subject = Date & " " & Mail.Subject sent a couple of emails to the account and they still got delivered without any date in the subject bar 'Michael Bauer [MVP - Outlook Wrote: ;348674']Does it make a difference if you move the code from the module to ThisOutlookSession? (Don't forget to edit the rule, too.) If not, set a breakpoint (f9) on the first line of code. Does the code execution stopps there when a new message arrives? -- Best regards Michael Bauer - MVP Outlook Category Manager - Manage and share your categories: SAM - The Sending Account Manager: http://www.vboffice.net/product.html?lang=en Am Fri, 7 May 2010 10:47:41 +0100 schrieb DarrenD: - Hi i've never created a script before and hope i have done it correctly i opened ToolMacroVisual Basic Editor inserted a new module copied in Public Sub Whatever(Mail As Outlook.MailItem) Mail.Subject = Date & " " & Mail.Subject Mail.Save End Sub and saved then in ToolsRules and Alerts and created a new rule Apply this rule after the message arrives on this machine only run Project1.Whatever i ran it on my inbox an sent myself an email and nothing happens im on office outlook 2003 SP2 many thanks Darren- |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Date Stamp in SUBJECT BOX of Outgoing/Incoming Mail | Glen.Cooper | Outlook and VBA | 12 | December 15th 14 07:24 PM |
Date AND time on incoming mail messages | R Dias | Outlook - Installation | 3 | March 6th 07 07:10 AM |
How do I script to change the subject line of incoming mail? | D-Man | Outlook and VBA | 3 | January 29th 07 08:12 PM |
How do I move the date field in an e-mail header? | Kozak & Gayer | Outlook - Using Forms | 1 | July 25th 06 10:24 PM |
Save incoming e-mail as msg with name = sent date | Ed_Berez | Outlook and VBA | 1 | April 6th 06 07:33 AM |