{"id":851,"date":"2008-10-07T16:37:44","date_gmt":"2008-10-07T15:37:44","guid":{"rendered":"http:\/\/www.craigmurphy.com\/blog\/?p=851"},"modified":"2008-10-13T16:24:46","modified_gmt":"2008-10-13T15:24:46","slug":"elementary-gtd-using-microsoft-outlook-move-to-folder","status":"publish","type":"post","link":"http:\/\/www.craigmurphy.com\/blog\/?p=851","title":{"rendered":"Elementary GTD using Microsoft Outlook &#8220;move to folder&#8221;"},"content":{"rendered":"<p>This is not the first time that I&#8217;ve found myself <a href=\"http:\/\/www.craigmurphy.com\/blog\/?p=220\">writing a blog entry about &#8220;managing e-mail&#8221;<\/a>.  However, it is the first time that I&#8217;ve written about managing e-mail and felt that I have a workable solution, for me at least.  For the last 18 months or so, I have been trying to push <a href=\"http:\/\/en.wikipedia.org\/wiki\/Getting_Things_Done\">Getting Things Done<\/a> into my life &#8211; too many e-mails, an ever-growing to-do list and clutter have been putting a lot of weight on my shoulders.  Something had to be done to alleviate that weight, <a href=\"http:\/\/www.davidco.com\/\">GTD<\/a> seemed like a popular\/successful fit.<\/p>\n<p>Whilst I have managed to enjoy the short-term benefits of <a href=\"http:\/\/www.craigmurphy.com\/blog\/?p=744\">Inbox Zero<\/a>, reaching it a few times over the last 18 months, keeping on top of a fast filling inbox kept getting the better of me.  As such, most of my &#8220;e-mail time&#8221; was spent processing immediate actions or fire-fighting.  Working like this means somethings do slip under the radar and can come back to bite you where it hurts most.  Something had to be done &#8211; it had to be simple, effective and something that I could run with for a long time.  <\/p>\n<p>I chose to stick with the GTD filing advice whereby tasks\/items are organised into four pots: <strong>Action<\/strong>, <strong>Deferred<\/strong>, <strong>Someday <\/strong>and <strong>Waiting For<\/strong>, as explained in a little more detail over <a href=\"http:\/\/web.archive.org\/web\/20080209112910rn_1\/www.blueflavor.com\/blog\/tips_tricks\/get_control_of_your_inbox.php\">here<\/a> (with thanks to <a href=\"http:\/\/www.peat.me.uk\/\">Richard Peat<\/a> over on <a href=\"https:\/\/twitter.com\/RTPeat\/statuses\/941693264\">Twitter<\/a>).  These folder names are working for me, your mileage may vary.<\/p>\n<p>Dragging and dropping into these folders is fine, however it is a little cumbersome and mouse-intensive &#8211; it&#8217;s easy to make mistakes with drag&#8217;n&#8217;drop.  I really wanted an more integrated solution that was better than drag&#8217;n&#8217;drop and better than the keyboard shortcut for Move To Folder (Control+Shift+V).  After a little hunting around for GTD solutions, I settled on my own home-grown solution.  I say home-grown, I actually took some inspiration from <a href=\"http:\/\/verychewy.com\/archive\/2006\/04\/12\/outlook-macro-to-move-an-email-to-folder.aspx\">Chewy&#8217;s Blog<\/a> &#8211; where you can find an Outlook macro that invokes a &#8220;move to folder&#8221; action in Outlook.  With a little modification I found myself with a handful of Outlook macros that would let me select one or more e-mails, run one of the GTD macros and hey presto, the e-mails would then magically file themselves in the appropriate GTD folder.<\/p>\n<p>However, I wanted more than &#8220;running macros&#8221;, I wanted toolbar icons that would run these macros and offer me keyboard shortcuts.  Fortunately, Microsoft Outlook allows us to create macros that can be run from a toolbar icon and these icons can have keyboard shortcuts associated with them.  <\/p>\n<p>Creating a Microsoft Outlook macro is fairly painless: simply click on the Tools, Macro, Macros menu item (or press Alt+F8).  Enter a macro name that reflects your action, e.g. MoveGTDAction and then click on the Create button.  With a little care, you should be able to cut&#8217;n&#8217;paste the code from this example into the VBA code editor.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.craigmurphy.com\/blog\/wp-content\/uploads\/2008\/10\/OutlookCreateMacro.jpg\" style=\"border:none\" \/><\/p>\n<p>One of the modifications that I made to the Chewy&#8217;s original code was the introduction of a separate routine that is capable of moving e-mail items to a given folder.  I needed to be able to call this routine such that it would operate on at least four different folders (the GTD folders), so a separate routine seemed logical.  Here&#8217;s the code behind MoveToFolder:<\/p>\n<pre name=\"code\" class=\"vb\">\r\nSub MoveToFolder(objFolder As Outlook.MAPIFolder)\r\n    On Error Resume Next\r\n        \r\n    Dim objItem As Outlook.MailItem\r\n\r\n    If objFolder Is Nothing Then\r\n        MsgBox \"This folder doesn't exist!\", vbOKOnly + vbExclamation, \"INVALID FOLDER\"\r\n    End If\r\n\r\n    If Application.ActiveExplorer.Selection.Count = 0 Then\r\n        Exit Sub\r\n    End If\r\n\r\n    For Each objItem In Application.ActiveExplorer.Selection\r\n        If objFolder.DefaultItemType = olMailItem Then\r\n            If objItem.Class = olMail Then\r\n                objItem.Move objFolder\r\n            End If\r\n        End If\r\n    Next\r\n\r\n    Set objItem = Nothing\r\n    Set objFolder = Nothing\r\nEnd Sub\r\n<\/pre>\n<p>Making use of MoveToFolder for each of the GTD folders necessiates the creation of routines for each of the folders.  Here&#8217;s the code for MoveGTDAction &#8211; be careful to get the folder hierarchy correct.<\/p>\n<pre name=\"code\" class=\"vb\">\r\nSub MoveGTDAction()\r\n    On Error Resume Next\r\n    \r\n    Dim objNS As Outlook.NameSpace\r\n    Set objNS = Application.GetNamespace(\"MAPI\")\r\n  \r\n    Call MoveToFolder(objNS.Folders.Item(\"Mailbox - Murphy, Craig\").Folders.Item(\"@ GTD\").Folders.Item(\"Action (respond or process)\"))\r\n\r\n    Set objNS = Nothing\r\nEnd Sub\r\n<\/pre>\n<p>Another minor tweak that I use is the notion of an &#8220;Archive 2008&#8221; folder.  I delete e-mail when it needs to be deleted, but there are a lot of e-mails that you may want to hold on to for any number of reasons.  Of course you don&#8217;t want them hanging around your Inbox or your GTD folders&#8230;so I have a folder called Archive with sub-folders 2008, 2007, etc.   Equally, I don&#8217;t want the archived e-mails hanging around in my corporate Exchange folders, so I use Microsoft Outlook&#8217;s Personal Folders instead (with an appropriate backup regime in place!)  Here&#8217;s the code that I use to move such e-mails into my Personal Folders for year 2008:<\/p>\n<pre name=\"code\" class=\"vb\">\r\nSub MoveArchive2008()\r\n    On Error Resume Next\r\n    \r\n    Dim objNS As Outlook.NameSpace\r\n    Set objNS = Application.GetNamespace(\"MAPI\")\r\n\r\n    Call MoveToFolder(objNS.Folders.Item(\"Personal Folders\").Folders.Item(\"Archive\").Folders.Item(\"2008\"))\r\n\r\n    Set objNS = Nothing\r\nEnd Sub\r\n<\/pre>\n<p>Microsoft Outlook&#8217;s toolbars are very customisable.  Simply right-click on any area of the toolbar and you&#8217;ll be presented with a list of the toolbars that are currently available and those that are visible (ticked).  You&#8217;ll also see the Customise menu option (yes, yes, Customize if you&#8217;re elsewhere in the world).  Clicking on the Customise menu option will give us the option to add a new toolbar, one with buttons that run the macros created earlier.  I have two toolbars, GTD and Organise.  The GTD toolbar handles the four GTD folders whereas the Organise toolbar handles Archive 2008, Outlook&#8217;s built-in Move To Folder icon and the frequently used Delete icon.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.craigmurphy.com\/blog\/wp-content\/uploads\/2008\/10\/OutlookToolbarCustomise.jpg\" style=\"border:none\" \/> <\/p>\n<p>Using the Customise dialog, it&#8217;s easy to create a new toolbar, simply click on the New&#8230; button.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.craigmurphy.com\/blog\/wp-content\/uploads\/2008\/10\/OutlookToolbarCustomiseDialog.jpg\" style=\"border:none\" \/> <\/p>\n<p>Once you have a toolbar, getting the GTD macros on to that toolbar is also a simple step.  Click on the Commands tab and choose the Macros category, as shown below.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.craigmurphy.com\/blog\/wp-content\/uploads\/2008\/10\/OutlookMacros.jpg\" style=\"border:none\" \/> <\/p>\n<p>It&#8217;s possible to drag the macros (e.g. Project1.MoveGTDAction) onto your &#8216;GTD&#8217; toolbar &#8211; a toolbar button will appear.  If you were to right-click on the newly created button, you&#8217;ll be able to change its name such that it has a keyboard short-cut, simply by prefixing the letter that you would like to use with an ampersand (&#038;).  The screenshot below demonstrates how we might use Alt+A to invoke the &#8220;file to Action folder&#8221; button.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.craigmurphy.com\/blog\/wp-content\/uploads\/2008\/10\/OutlookCustomiseButton.jpg\" style=\"border:none\" \/> <\/p>\n<p>Repeating this process for all the GTD actions, you might end up with a toolbar that looks similar to this one:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.craigmurphy.com\/blog\/wp-content\/uploads\/2008\/10\/OutlookToolbar.jpg\" style=\"border:none\" \/> <\/p>\n<p>For the sake of completeness, my GTD folder structure looks like this:<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.craigmurphy.com\/blog\/wp-content\/uploads\/2008\/10\/OutlookFolders.jpg\" style=\"border:none\" \/> <\/p>\n<p>I&#8217;ve used these folders, macros, toolbars and keyboard shortcuts to clear down both my corporate inboxes and my personal inbox (which was by far the worst).  I have a few more tricks that I&#8217;m using to keep my inbox &#8220;flowing&#8221;, I&#8217;ll share those in a follow-up blog post.  In the meantime, if you have any tips and tricks that you would like to share, please feel free to leave a comment!<\/p>\n<p><em>With thanks to <a href=\"http:\/\/www.techsmith.com\/\">TechSmith<\/a> for the <a href=\"http:\/\/www.techsmith.com\/screen-capture.asp\">SnagIt screen capture<\/a> software.  It is truly wonderful.<\/em><\/p>\n<p><strong>Other posts<\/strong><br \/>\n<a href=\"http:\/\/www.craigmurphy.com\/blog\/?p=856\">GTD Action\/Deferred\/WaitingFor\/Someday folders in Microsoft Outlook &#8211; Show Item Count<\/a><br \/>\n<a href=\"http:\/\/www.craigmurphy.com\/blog\/?p=853\">Making e-mail simpler and easier to handle: using Microsoft Outlook rules<\/a><br \/>\n<a href=\"http:\/\/www.craigmurphy.com\/blog\/?p=851\">Elementary GTD using Microsoft Outlook \u201cmove to folder\u201d<\/a><\/p>\n<p>Technorati Tags: <a href=\"http:\/\/technorati.com\/tag\/Microsoft+Outlook\" rel=\"tag\">Microsoft Outlook<\/a>, <a href=\"http:\/\/technorati.com\/tag\/Getting+Things+Done\" rel=\"tag\">Getting Things Done<\/a>, <a href=\"http:\/\/technorati.com\/tag\/Inbox+Zero\" rel=\"tag\">Inbox Zero<\/a>, <a href=\"http:\/\/technorati.com\/tag\/Merlin+Mann\" rel=\"tag\">Merlin Mann<\/a>, <a href=\"http:\/\/technorati.com\/tag\/GTD\" rel=\"tag\">GTD<\/a>, <a href=\"http:\/\/technorati.com\/tag\/MoveToFolder\" rel=\"tag\">MoveToFolder<\/a>, <a href=\"http:\/\/technorati.com\/tag\/Move+To+Folder\" rel=\"tag\">Move To Folder<\/a>, <a href=\"http:\/\/technorati.com\/tag\/TechSmith\" rel=\"tag\">TechSmith<\/a>, <a href=\"http:\/\/technorati.com\/tag\/SnagIt\" rel=\"tag\">SnagIt<\/a>, <a href=\"http:\/\/technorati.com\/tag\/screen+capture\" rel=\"tag\">screen capture<\/a>, <a href=\"http:\/\/technorati.com\/tag\/Richard+Peat\" rel=\"tag\">Richard Peat<\/a>, <a href=\"http:\/\/technorati.com\/tag\/Chewy+Chong\" rel=\"tag\">Chewy Chong<\/a><\/p>\n<p><iframe src=\"http:\/\/rcm-uk.amazon.co.uk\/e\/cm?t=craigmurphyco-21&#038;o=2&#038;p=8&#038;l=as1&#038;asins=0749922648&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe>  <iframe src=\"http:\/\/rcm-uk.amazon.co.uk\/e\/cm?t=craigmurphyco-21&#038;o=2&#038;p=8&#038;l=as1&#038;asins=0749924799&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe>  <iframe src=\"http:\/\/rcm-uk.amazon.co.uk\/e\/cm?t=craigmurphyco-21&#038;o=2&#038;p=8&#038;l=as1&#038;asins=1585425524&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is not the first time that I&#8217;ve found myself writing a blog entry about &#8220;managing e-mail&#8221;. However, it is the first time that I&#8217;ve written about managing e-mail and felt that I have a workable solution, for me at least. For the last 18 months or so, I have been trying to push Getting &hellip; <a href=\"http:\/\/www.craigmurphy.com\/blog\/?p=851\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Elementary GTD using Microsoft Outlook &#8220;move to folder&#8221;<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26,23],"tags":[],"class_list":["post-851","post","type-post","status-publish","format-standard","hentry","category-gtd","category-product-reviews"],"_links":{"self":[{"href":"http:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=851"}],"version-history":[{"count":0,"href":"http:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/851\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=851"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.craigmurphy.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}