Me: I live in Silicon Valley with my wife, child and cat. I have worked at Microsoft since I graduated from College, both in the Macintosh Business Unit on products such as Outlook Express, Entourage, IE, and Virtual PC and in Windows Live on Hotmail, Calendar and People. I am currently a Principal Lead Program Manager on the Windows Live Social Networking team. I basically manage a team of Program Managers responsible for delivering features to support our web and client applications. I've been blogging since 2001 and like to play around with .NET in my spare time working on projects such as dasBlog (the blog that powers this site) and Send to SmugMug (an application for uploading photos to SmugMug). I blog about a number of technology and productivity related topics.
Powered by: newtelligence dasBlog 2.1.8251.15563
Disclaimer The posts on this weblog are provided "AS IS" with no warranties, and confer no rights. The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
© Copyright 2009, Omar Shahine
E-mail
Simon has a really good post on some simple macros you can create for Outlook 2007 for us GTD users. Personally I've got a simple "Next Action" button that executes the following VBA Script (Ugh I hate VBA).
Mine is a hybrid of his and one I created. The difference is that the first time you run mine it will create a toolbar button for itself and when you create a task it will open the task so that you can make edits like add a due date and subject to be more descriptive. It also trims "Re: " from the subject of the email.
Public Sub CreateNextAction() Dim olExp As Outlook.Explorer Dim myolApp As Outlook.Application Dim myNamespace As Outlook.NameSpace Dim myTasks As Outlook.Folder Dim myFolder As Outlook.Folder Set myolApp = Outlook.CreateObject("Outlook.Application") Set myolExp = myolApp.ActiveExplorer Set myNamespace = myolApp.GetNamespace("MAPI") Set myTasks = myNamespace.GetDefaultFolder(olFolderTasks) ' check for the toolbar button Set myobjCB = myolExp.CommandBars.item("Standard") On Error GoTo MyError Set objNA = myobjCB.Controls("&Next Action") On Error Resume Next Dim cntSelection As Integer cntSelection = myolExp.Selection.Count For i = 1 To cntSelection Dim item As MailItem Set item = myolExp.Selection.item(1) item.ShowCategoriesDialog Set myTask = item.Move(myTasks) subject = myTask.subject subject = Replace(subject, "RE: ", "") subject = Replace(subject, "Re: ", "") myTask.subject = subject myTask.Save myTask.Display Next Exit Sub MyError: Set objNA = myobjCB.Controls.Add(msoControlButton) objNA.Caption = "&Next Action" objNA.FaceId = 7264 objNA.Style = msoButtonIconAndCaption objNA.OnAction = "CreateNextAction" objNA.BeginGroup = True objNA.TooltipText = "Create a Next Action task from this E-mail" End Sub
 
Remember Me
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u