• Subject: Re: Customize toolbar buttoms
  • Author: Sue Mosher [MVP]
  • Date: 21 Sep 2009
  • References: 1 2 3
What version of Outlook?
Sue Mosher, Outlook MVP Author of Microsoft Outlook 2007 Programming: Jumpstart for Power Users and Administrators http://www.outlookcode.com/article.aspx?id=54
"HenrikH" <fam.hougaard@gmail.com> wrote in message news:60424ca5-ef23-41cb-b698-5b0cd854939d@l31g2000vbp.googlegroups.com...
> Hi Sue > > The buttons has diffent looks and different help texts. One button > "Send and Save", another just "Save" and a 3th reads "Save and > delete". > > However if it cannot be solved any other way than your suggestion I > must re-think the buttons. > > BTW I'm using your suggestion to run code when a mail i sent and > reaches the sent folder but it is unstable. Sometimes it fires and > after sometimes it don't. If I restart Outlook it runs again but only > one or 2 times then it doesnt fire again until Outlook is restartet - > any ideas to this behavior? > > The code (in ThisOutlookSession): > Dim WithEvents colSentItems As Items > > Private Sub Application_Startup() > Dim NS As Outlook.NameSpace > Set NS = Application.GetNamespace("MAPI") > Set colSentItems = NS.GetDefaultFolder(olFolderSentMail).Items > Set NS = Nothing > End Sub > > Private Sub colSentItems_ItemAdd(ByVal Item As Object) > If Item.Class = olMail Then > strname2 = Left(Item.CreationTime, 10) > If Kundenr = "" Then > Item.SaveAs ValgtFolder & "\" & strname2 & " - " & strname > & ".msg", olMSG > Else > Item.SaveAs rootdir & Kundenr & "\Mail\" & strname2 & " - > " & strname & ".msg", olMSG > End If > End If > End Sub
20 Sep 2009Customize toolbar buttoms.HenrikH
20 Sep 2009\ Re: Customize toolbar buttoms.Sue Mosher [MVP]
21 Sep 2009   \ Re: Customize toolbar buttoms.HenrikH
21 Sep 2009      \ Re: Customize toolbar buttoms.Sue Mosher [MVP]
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)