WordPress database error: [Disk full (/tmp/#sql-temptable-1-261b89-169.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")]SHOW FULL COLUMNS FROM `markjacobsen_options`
If you’re still rockin’ Outlook 2007 and want to create some macros to categorize or archive your email, here’s some copy and paste code to have fun with…<\/p>\n
\r\nSub Archive()\r\n Call CommonCategorizeAndArchive(True, False, False)\r\nEnd Sub\r\n\r\nSub Categorize()\r\n Call CommonCategorizeAndArchive(False, True, False)\r\nEnd Sub\r\n\r\nSub CategorizeAndArchive()\r\n Call CommonCategorizeAndArchive(True, True, False)\r\nEnd Sub\r\n\r\nSub Task()\r\n Call CommonCategorizeAndArchive(True, True, True)\r\nEnd Sub\r\n\r\nPrivate Sub CommonCategorizeAndArchive(archiveEm As Boolean, categorizeEm As Boolean, taskIt As Boolean)\r\n Dim olApp As New Outlook.Application\r\n Dim olItem As Object\r\n Dim olExp As Outlook.Explorer\r\n Dim olSel As Outlook.Selection\r\n Dim olArchive As Outlook.Folder\r\n Dim olTasks As Outlook.Folder\r\n Dim olNameSpace As Outlook.NameSpace\r\n Dim olTmpMailItem As Outlook.MailItem\r\n \r\n Set olExp = olApp.ActiveExplorer\r\n Set olSel = olExp.Selection\r\n Set olNameSpace = olApp.GetNamespace(\"MAPI\")\r\n \r\n Set olArchive = olNameSpace.GetDefaultFolder(olFolderInbox).Folders(\"@Archive\")\r\n Set olTasks = olNameSpace.GetDefaultFolder(olFolderInbox).Folders(\"zTasks\")\r\n\r\n For intItem = 1 To olSel.Count\r\n Set olItem = olSel.Item(intItem)\r\n olItem.UnRead = False\r\n \r\n If (categorizeEm = True) Then\r\n olItem.ShowCategoriesDialog\r\n End If\r\n \r\n If (archiveEm = True) Then\r\n olItem.Move olArchive\r\n End If\r\n \r\n If (taskIt = True) Then\r\n Set olTmpMailItem = olItem.Copy\r\n olTmpMailItem.Move olTasks\r\n End If\r\n Next intItem\r\nEnd Sub\r\n<\/code><\/pre>\nPlease remember to subscribe to the newsletter<\/a> to stay up to date!<\/i>
\n
\nYou or someone you know looking to buy or sell?<\/i>\n<\/a>
\nDisclaimer: Thoughts and opinions are my own, and do not reflect the views of any employer, family member, friend, or anyone else. Some links may be affiliate links, but I don't link to anything I don't use myself. You would think this should be self evident these days, but apparently not...<\/small><\/i>","protected":false},"excerpt":{"rendered":"If you’re still rockin’ Outlook 2007 and want to create some macros to categorize or archive your email, here’s some copy and paste code to have fun with… Sub Archive() Call CommonCategorizeAndArchive(True, False, False) End Sub Sub Categorize() Call CommonCategorizeAndArchive(False, True, False) End Sub Sub CategorizeAndArchive() Call CommonCategorizeAndArchive(True, True, False) End Sub Sub Task() Call … Continue reading Outlook Macros to Categorize and Archive Messages<\/span>