• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Print a list of Outlook Categories and their Colors

Slipstick Systems

› Developer › Print a list of Outlook Categories and their Colors

Last reviewed on June 4, 2020     36 Comments

Having a list of categories names and their colors can be helpful when sharing categories with other users, since the color is per-user. Fortunately, MSDN published a sample macro that prints a list of categories and the name of the color assigned. Unfortunately, some of the color names in their macro are not valid. Below is the code from Category.Color Property (Outlook), with the corrected olCategoryColor names.

This macro can display a message box with a list of the category names and colors or print it to the VBA Editor's Immediate window.

To create a list of categories, including their colors and assigned shortcuts that can be restored or merged with the categories in a new profile, see Create a list of color categories and merge or restore the list using VBA.

Use MsgBox strOutput to display a message box or Debug.Print strOutput to print a list to the Immediate window (View > Immediate window or Ctrl+G). You can copy the list from the Immediate window or the MsgBox.

The printout and message box will look like the following:
Create a list of your categories and their assigned colorsUtility: Purple
Bookkeeping: Unknown
Business: Peach
Important: Dark Yellow
Test: Purple
Blue Category: Blue
Federal Holidays: Green
Needs Done: Dark Green
Old Projects that need finished: Dark Olive
Send Message: Yellow
Slipstick: Olive
Follow up soon: Dark Orange

The message box is copyable - click in the text and press Ctrl+C to copy it.

List Category Colors Macro

To use, Open the VBA editor using Alt+F11, right click on the Project folder and choose Insert > Module. Paste this code into the module then click the Run button or press F8. Press Ctrl+G to see the list of category names and colors in the immediate window. Comment out the MsgBox line to use only the Immediate window.

Public Sub ListCategoryNamesandColors()
 Dim objNameSpace As NameSpace
 Dim objCategory As Category
 Dim strOutput As String
 
 Set objNameSpace = Application.GetNamespace("MAPI")
 If objNameSpace.Categories.Count > 0 Then
 
 For Each objCategory In objNameSpace.Categories
 strOutput = strOutput & objCategory.Name

 Select Case objCategory.Color
 Case OlCategoryColor.olCategoryColorNone
 strOutput = strOutput & ": No color (white)" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorBlack
 strOutput = strOutput & ": Black " & vbCrLf
 
 Case OlCategoryColor.olCategoryColorBlue
 strOutput = strOutput & ": Blue" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorDarkBlue
 strOutput = strOutput & ": Dark Blue" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorDarkGreen
 strOutput = strOutput & ": Dark Green" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorDarkMaroon
 strOutput = strOutput & ": Dark Maroon" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorDarkOlive
 strOutput = strOutput & ": Dark Olive" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorDarkOrange
 strOutput = strOutput & ": Dark Orange" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorDarkPeach
 strOutput = strOutput & ": Dark Peach" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorDarkPurple
 strOutput = strOutput & ": Dark Purple" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorDarkRed
 strOutput = strOutput & ": Dark Red" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorDarkSteel
 strOutput = strOutput & ": Dark Steel" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorDarkTeal
 strOutput = strOutput & ": Dark Teal" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorDarkYellow
 strOutput = strOutput & ": Dark Yellow" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorGray
 strOutput = strOutput & ": Gray" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorGreen
 strOutput = strOutput & ": Green" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorMaroon
 strOutput = strOutput & ": Maroon" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorOlive
 strOutput = strOutput & ": Olive" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorOrange
 strOutput = strOutput & ": Orange" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorPeach
 strOutput = strOutput & ": Peach" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorPurple
 strOutput = strOutput & ": Purple" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorRed
 strOutput = strOutput & ": Red" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorSteel
 strOutput = strOutput & ": Steel" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorTeal
 strOutput = strOutput & ": Teal" & vbCrLf
 
 Case OlCategoryColor.olCategoryColorYellow
 strOutput = strOutput & ": Yellow" & vbCrLf
 

 Case Else
 strOutput = strOutput & ": Unknown" & vbCrLf
 End Select
 Next
 End If
 
 ' Display the output string in a msgbox 
 ' or in the immediate window
  MsgBox strOutput
  Debug.Print strOutput
 
 Set objCategory = Nothing
 Set objNameSpace = Nothing
 
End Sub

To include the Color Category index number in the listing (useful in other macros), add objCategory.Color to each line, as shown in the sample below. The results will include the index number at the end of the results line: Edit Websites: Dark Steel 12

strOutput = strOutput & ": Dark Steel " & objCategory.Color & vbCrLf

Write the Category List to Excel or Notepad

While you can copy and paste the list from the Immediate window, you can send it directly to an email message, a text file, or Excel. Simply replace the last few lines of code, from Debug.Print strOutput to the end with one of the code snippets below.

save category list to file

To write the list to a new email message, use this code.

 Debug.Print strOutput

'### write to email message
Dim objMsg As MailItem

Set objMsg = Application.CreateItem(olMailItem)

 With objMsg
 .Body = strOutput
 .Display
 End With
'### end email message

 Set objCategory = Nothing
 Set objNameSpace = Nothing
 
End Sub

To write the list to a text file, use this code snippet.

  Debug.Print strOutput
  
' ### write to a text file
Dim FSO As Object
Dim strFile As String
Dim strFolderpath As String

Set FSO = CreateObject("Scripting.FileSystemObject")

' save to documents
strFolderpath = CreateObject("WScript.Shell").SpecialFolders(16)
Debug.Print strFolderpath
    strFile = strFolderpath & "\color-categories-list.txt"
Set objFile = FSO.CreateTextFile(strFile, True)

    objFile.Write "" & strOutput
    objFile.Close
' ### end write to text file

 Set objCategory = Nothing
 Set objNameSpace = Nothing
 
End Sub

To write the category names and colors to Excel, splitting the categories into rows and columns, use this code:

  Debug.Print strOutput
  
' ### write to excel
Dim xlApp As Object
 Dim xlWB As Object
 Dim xlSheet As Object
 
     On Error Resume Next
     Set xlApp = GetObject(, "Excel.Application")
     If Err <> 0 Then
         Application.StatusBar = "Please wait while Excel source is opened ... "
         Set xlApp = CreateObject("Excel.Application")
         bXStarted = True
     End If
     On Error GoTo 0
     'Open a new workbook to input the data
    Set xlWB = xlApp.Workbooks.Add
    Set xlSheet = xlWB.Sheets("Sheet1")
    
 xlSheet.Range("A1") = "Category Name"
 xlSheet.Range("B1") = "Color"
 xlSheet.Range("A2") = strOutput

' split strOutput into rows
Dim k() As String
Dim l As Long
Dim i As Long

k() = Split(xlSheet.Range("A2"), vbCrLf)
i = 2
For l = 0 To UBound(k)
    xlSheet.Cells(i, 1) = k(l)
    i = i + 1
Next l

Dim txt As String
Dim Categories As Variant

For Each cell In xlSheet.Range(xlSheet.Cells(1, 1), xlSheet.Cells(xlSheet.UsedRange.Count, 1))
     txt = cell.Value
     Categories = Split(txt, ":")
     For i = 0 To UBound(Categories)
         cell.Offset(0, i).Value = Categories(i)
     Next i
Next cell
xlApp.Visible = True
' ### end write to excel

 
 Set objCategory = Nothing
 Set objNameSpace = Nothing
 
End Sub

Category Color Codes

If you want to use the category color in the printout, the color codes are below. These colors are in the order they appear on the category color picker in Outlook 2016. The color names are as listed in the color picker.

Red
olCategoryColorRed
HEX : #F07D88
RGB : 240,125,136
HSB : 354,48,94
HSL : 354,79,72
Orange
olCategoryColorOrange
HEX : #FF8C00
RGB : 255,140,0
HSB : 33,100,100
HSL : 33,100,50
Peach
olCategoryColorPeach
HEX : #FECB6F
RGB : 254,203,111
HSB : 39,56,100
HSL : 39,99,72
Yellow
olCategoryColorYellow
HEX : #FFF100
RGB : 255,241,0
HSB : 57,100,100
HSL : 57,100,50
Green
olCategoryColorGreen
HEX : #5FBE7D
RGB : 95,190,125
HSB : 139,50,75
HSL : 139,42,56
Teal
olCategoryColorTeal
HEX : #33BAB1
RGB : 51,186,177
HSB : 176,73,73
HSL : 176,57,46
Olive
olCategoryColorOlive
HEX : #A3B367
RGB : 163,179,103
HSB : 73,42,70
HSL : 73,33,55
Blue
olCategoryColorBlue
HEX : #55ABE5
RGB : 85,171,229
HSB : 204,63,90
HSL : 204,73,62
Purple
olCategoryColorPurple
HEX : #A895E2
RGB : 168,149,226
HSB : 255,34,89
HSL : 255,57,74
Maroon
olCategoryColorMaroon
HEX : #E48BB5
RGB : 228,139,181
HSB : 332,39,89
HSL : 332,62,72
Steel
olCategoryColorSteel
HEX : #B9C0CB
RGB : 185,192,203
HSB : 217,9,80
HSL : 217,15,76
Dark Steel
olCategoryColorDarkSteel
HEX : #4C596E
RGB : 76,89,110
HSB : 217,31,43
HSL : 217,18,36
Gray
olCategoryColorGray
HEX : #ABABAB
RGB : 171,171,171
HSB : 300,0,67
HSL : 300,0,67
Dark Gray
olCategoryColorDarkGray
HEX : #666666
RGB : 102,102,102
HSB : 300,0,40
HSL : 300,0,40
Black
olCategoryColorBlack
HEX : #474747
RGB : 71,71,71
HSB : 300,0,28
HSL : 300,0,28
Dark Red
olCategoryColorDarkRed
HEX : #910A19
RGB : 145,10,25
HSB : 353,93,57
HSL : 353,87,30
Dark Orange
olCategoryColorDarkOrange
HEX : #CE4B28
RGB : 206,75,40
HSB : 13,81,81
HSL : 13,67,48
Dark Peach
olCategoryColorDarkPeach
HEX : #A47332
RGB : 164,115,50
HSB : 34,70,64
HSL : 34,53,42
Dark Yellow
olCategoryColorDarkYellow
HEX : #B0A923
RGB : 176,169,35
HSB : 57,80,69
HSL : 57,67,41
Dark Green
olCategoryColorDarkGreen
HEX : #026802
RGB : 2,104,2
HSB : 120,98,41
HSL : 120,96,21
Dark Teal
olCategoryColorDarkTeal
HEX : #1C6367
RGB : 28,99,103
HSB : 183,73,40
HSL : 183,57,26
Dark Olive
olCategoryColorDarkOlive
HEX : #5C6A22
RGB : 92,106,34
HSB : 72,68,42
HSL : 72,51,27
Dark Blue
olCategoryColorDarkBlue
HEX : #254069
RGB : 37,64,105
HSB : 216,65,41
HSL : 216,48,28
Dark Purple
olCategoryColorDarkPurple
HEX : #562685
RGB : 86,38,133
HSB : 270,71,52
HSL : 270,56,34
Dark Maroon
olCategoryColorDarkMaroon
HEX : #80275D
RGB : 128,39,93
HSB : 324,70,50
HSL : 324,53,33

Outlook 365 and Outlook 2019 have updated color category names and colors.

Red
olCategoryColorRed
HEX : #DC626D
RGB : 220,98,109
HSB : 355,55,86
HSL : 355,64,62
Orange
olCategoryColorOrange
HEX : #E8825D
RGB : 232,130,93
HSB : 16,60,91
HSL : 16,75,64
Peach
olCategoryColorPeach
HEX : #FFCD8F
RGB : 255,205,143
HSB : 33,44,100
HSL : 33,100,78
Yellow
olCategoryColorYellow
HEX : #FDEE65
RGB : 253,238,101
HSB : 54,60,99
HSL : 54,97,69
Light Green
olCategoryColorGreen
HEX : #52CE90
RGB : 82,206,144
HSB : 150,60,81
HSL : 150,56,56
Light Teal
olCategoryColorTeal
HEX : #57D2DA
RGB : 87,210,218
HSB : 184,60,85
HSL : 184,64,60
Lime Green
olCategoryColorOlive
HEX : #B6D767
RGB : 182,215,103
HSB : 78,52,84
HSL : 78,58,62
Blue
olCategoryColorBlue
HEX : #5CA9E5
RGB : 92,169,229
HSB : 206,60,90
HSL : 206,72,63
Lavender
olCategoryColorPurple
HEX : #B1AAEB
RGB : 177,170,235
HSB : 246,28,92
HSL : 246,62,79
Magenta
olCategoryColorMaroon
HEX : #EE5FB7
RGB : 238,95,183
HSB : 323,60,93
HSL : 323,81,65
Light Gray
olCategoryColorSteel
HEX : #C5CED1
RGB : 197,206,209
HSB : 195,6,82
HSL : 195,12,80
Steel
olCategoryColorDarkSteel
HEX : #4497A9
RGB : 68,151,169
HSB : 191,60,66
HSL : 191,43,46
Warm Gray
olCategoryColorGray
HEX : #C3C5BB
RGB : 195,197,187
HSB : 72,5,77
HSL : 72,8,75
Gray
olCategoryColorDarkGray
HEX : #9FADB1
RGB : 159,173,177
HSB : 193,10,69
HSL : 193,10,66
Dark Gray
olCategoryColorBlack
HEX : #8F8F8F
RGB : 143,143,143
HSB : 300,0,56
HSL : 300,0,56
Dark Red
olCategoryColorDarkRed
HEX : #AC4E5E
RGB : 172,78,94
HSB : 350,55,67
HSL : 350,38,49
Dark Orange
olCategoryColorDarkOrange
HEX : #DF8E64
RGB : 223,142,100
HSB : 20,55,87
HSL : 20,66,63
Brown
olCategoryColorDarkPeach
HEX : #BC8F6F
RGB : 188,143,111
HSB : 25,41,74
HSL : 25,36,59
Gold
olCategoryColorDarkYellow
HEX : #DAC257
RGB : 218,194,87
HSB : 49,60,85
HSL : 49,64,60
Dark Green
olCategoryColorDarkGreen
HEX : #4CA64C
RGB : 76,166,76
HSB : 120,54,65
HSL : 120,37,47
Teal
olCategoryColorDarkTeal
HEX : #4BB4B7
RGB : 75,180,183
HSB : 182,59,72
HSL : 182,43,51
Green
olCategoryColorDarkOlive
HEX : #85B44C
RGB : 133,180,76
HSB : 87,58,71
HSL : 87,41,50
Navy Blue
olCategoryColorDarkBlue
HEX : #4179A3
RGB : 65,121,163
HSB : 206,60,64
HSL : 206,43,45
Dark Purple
olCategoryColorDarkPurple
HEX : #A589CB
RGB : 165,137,203
HSB : 265,33,80
HSL : 265,39,67
Dark Pink
olCategoryColorDarkMaroon
HEX : #C34E98
RGB : 195,78,152
HSB : 322,60,76
HSL : 322,49,54
Print a list of Outlook Categories and their Colors was last modified: June 4th, 2020 by Diane Poremsky
Post Views: 116

Related Posts:

  • Create a List of Color Categories to Merge or Restore
  • Use VBScript to Export or Import Categories
  • Use PowerShell to Export and Import Categories
  • Creating New Color Categories

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Comments

  1. Gary says

    February 3, 2023 at 2:43 pm

    Thank you so much for this macro. I saved the list to a text file. Now is there a macro that can be used to import the list into outlook running on another computer? Or is there a macro that can be used to assign every category to a note? I've found instructions for exporting categories with a note and then importing the note as a msg file on another computer BUT I have lots of categories and manually selecting them all for the note is a pain.

    Reply
    • Diane Poremsky says

      February 2, 2024 at 4:19 pm

      There is a macro on this page - https://www.slipstick.com/developer/get-color-categories-and-restore-them-using-vba/ - to import a category list.

      Reply
  2. Marko says

    September 6, 2022 at 4:18 am

    That's a gret help, thanks a lot.
    However, it just exports the categories of the standard mail account.
    Any idea of how to go through all accounts or select one?

    Reply
  3. Rob says

    November 22, 2019 at 12:33 pm

    This has been a massive time saver! Thanks for taking the time to develop and present this so clearly!

    Reply
  4. Rebecca Dunkley says

    June 3, 2019 at 8:21 pm

    Thank you for this - it is very helpful. I would like to ask - is there a way of getting the exact colour to highlight the cells rather than just what colour and index number it is once it is put into Excel or in finding the correct index colour in the colour options for the cells so I can do it manually? I tried to look up the colours but I am unsure if I have the same colour as the index colour number.

    Reply
    • Diane Poremsky says

      June 3, 2019 at 11:56 pm

      You'll need to get the RGB color then fill the cell. I don't think i have a list of them, but will look.

      Reply
    • Diane Poremsky says

      June 4, 2019 at 12:19 am

      You'll need to get the RGB color - I was hoping the enumeration would be the same between outlook and excel, but they're not. :(
      https://docs.microsoft.com/en-us/dotnet/api/microsoft.office.interop.outlook.olcategorycolor?view=outlook-pia

      Reply
  5. Mary says

    January 11, 2018 at 8:16 pm

    This is an add on to my last question.
    Is there a way to 'get' the list into Excel so i can parse it?
    Thanks

    Reply
    • Diane Poremsky says

      January 11, 2018 at 11:48 pm

      you can copy and paste it to excel or notepad... but yes, you could also write it to excel.

      Reply
      • Diane Poremsky says

        January 12, 2018 at 1:08 am

        i added code samples to write to email, notepad, or excel to the end of the article.

  6. Mary says

    January 11, 2018 at 8:12 pm

    Hi and many thanks Diane, i can't belive this function is not available already.
    I copied the code and ran the Macro and it printed the cat/colours list to screen Ok but how can i get the list to print?

    Also is there any way to expand the colour categories box so you can see all categories/colours together on the screen?

    Thank you
    Mary

    Reply
    • Diane Poremsky says

      January 11, 2018 at 11:49 pm

      Print: luddite way: copy and paste into notepad :)

      Expand the category box: No, sorry.

      Reply
  7. Jim Schwetz says

    March 24, 2017 at 11:05 am

    Great Post Diane,
    I ...overuse categories in outlook. Problem is when I right click on an email to assign a category, the menu only shows some of the categories I use, so I have to click again to see more categories. Is there a way to change how many categories I can see while assigning one?

    Reply
    • Diane Poremsky says

      April 2, 2017 at 10:22 pm

      No, sorry. You'll see a MRU list of recent/frequently used categories. You can assign shortcuts to some, but it won't help a lot as there is a limited number of shortcuts available.

      Reply
  8. Laurie says

    March 9, 2016 at 10:34 am

    This is great but wondering if someone could help me with some VBA code so that I could get a list of categories, name with the count for a specified folder. I would like to output it to an excel file and show, Folder, category, count of items in said category. I've seen a few but can't get any to work too well.
    Thanks

    Reply
    • Diane Poremsky says

      March 9, 2016 at 11:09 am

      This macro is just a printout of the categories in the master list and the colors they are assigned.

      If you want to count the number of items in each category, you need to go through and check each message and keep a running tally. This is more complicated. Do you want to get the count for one folder or for all folders in the mailbox?

      Reply
    • Diane Poremsky says

      March 9, 2016 at 11:12 am

      BTW, it will be easier to write each message (just the fields you need, like only category) then use excel functions to get the counts by categories. This macro https://www.slipstick.com/developer/code-samples/macro-export-outlook-fields-excel/ (changed to export the category field) then let Excel do the work.

      Reply
  9. Steve Glykys says

    April 25, 2015 at 5:49 am

    Dear Dian, I run the program as advised by I get the message "The Macros in this Project are disabled. Please refer to the on line help or documentation of the host application to determine how to enable macros." Your advise will be very much appreciated. Kind regards Steve

    Reply
    • Diane Poremsky says

      April 26, 2015 at 12:01 am

      You need to go to File, Options, Trust Center, Trust Center Settings, Macro security and enable macros (lowest setting). Then restart Outlook.

      Reply
  10. Niels Andersen says

    October 9, 2014 at 10:36 am

    I imported my contacts into O2010. I have got colours. And all my 1000+ contacts have got individual category NAMES. But I cannot add an existing category name to a new contact, I cannot add a NEW category name, and I cannot see the names in the drop down category list, which shows only the colours. Any ideas, pl?

    Reply
  11. Aaron M. says

    October 28, 2013 at 12:55 pm

    Thank You! For a non-programmer I was able to use your directions to backup my Categories which I rely heavily on. I feel much better now that I have a list of what they are. Thanks again!!

    Reply
  12. Frances.r.buie.civ@army.mil says

    August 15, 2013 at 6:28 am

    I need to change the names of the colors (in the existing categories) in order for the entire office to be aware of what each color stands for. Can you provide me with the neccessary steps?

    Reply
    • Diane Poremsky says

      August 15, 2013 at 9:24 am

      You are doing this in everyone's mailbox? You'll need to use a utility. See the tools list here.

      Reply
  13. Dawn Lambert says

    July 3, 2013 at 4:26 am

    Thank you for trying, Diane :)

    Reply
  14. Justin Freebourn says

    July 2, 2013 at 10:10 am

    I'd like to know how to make this work with a shared calendar, too.

    Thanks,

    Justin

    Reply
    • Diane Poremsky says

      July 2, 2013 at 11:15 pm

      It's a lot more complicated to work with categories in Shared folders and I don't have any code samples that can do it. Sorry.

      Reply
  15. Dawn Lambert says

    June 13, 2013 at 7:44 am

    The marco works on the default calendar but I would like to run it on a shared calendar. Where do I enter in the name of the calendar I want to get the categories from?

    Thank you!

    Reply
    • Diane Poremsky says

      June 13, 2013 at 9:49 am

      I'll check on it and update the code.

      Reply
  16. Kathie Paintner says

    April 4, 2013 at 1:11 am

    Just an EA looking for a simple list of all of our categories, opened the VBA editor and pasted the above code, the F8 to run. Then Ctrl+G. Nothing displays in the Immediate Window.

    Reply
    • Diane Poremsky says

      April 4, 2013 at 7:05 am

      Do you get any error messages? What is your macro security set to? You should see a dialog box come up with a list of categories as soon as you hit Run and it is repeated in the immediate window.

      Reply
  17. Greg Simonis says

    February 27, 2013 at 7:15 am

    I copied the code to VBA, deleted the comments at the bottom, and upon running I get an error msg. 'Compile error: User-defined type not defined and it highlights the last part of the second line "Dim 'objNameSpace As Namespace'". The section highlighted I put single quotes around so you see what text was highlighted.

    Reply
    • Diane Poremsky says

      March 3, 2013 at 8:37 pm

      User-defined type not defined means it thinks there is a custom variable. And that it stops on "Dim objNameSpace As Namespace" means it thinks something in this line is the user-defined type. I don't know why it thinks that, I'm not able to repro it.

      Reply
      • Kevin says

        June 2, 2016 at 7:28 am

        Since this is so old, my update is only for future people that may receive the same error:

        I had a similar problem, it turned out the web page had the letters coded with some hidden thing I couldn't see. When I copied and pasted into VBA the hidden coding came with it. I replaced the characters by manually typing them and it fixed the problem.

  18. Tim Chambers says

    July 11, 2012 at 11:52 am

    Thank you, Diane! The page that referred me to your helpful macro is in the Website field.

    – Tim Chambers 1E4AF729D5CEFFD0
    With apologies to C.S. Lewis: You must picture me alone in front of my Windows computer, day after day, feeling, whenever my mind lifted even for a second from my work, the steady, unrelenting approach of the abominable language that I so earnestly desired not to use. That which I greatly feared had at last come upon me. During a lunch of Rosemary & Olive Oil Triscuits on July 11th, 2012 I gave in, and admitted that Microsoft VBA existed, and opened the VBA editor and ran my very first module: perhaps, that day, the most dejected and reluctant convert in all of cyberspace.

    Reply
  19. Michael Doncaster says

    May 25, 2012 at 12:32 am

    Hi,

    I can get this macro to run in the VBA editor, but it will not run from the ribbon.

    I had to change it to a 'public sub' for it to visible in the macro list in the Ribbon customisation pane.

    Any idea why?

    Regards
    Michael

    Reply
    • Diane Poremsky says

      May 25, 2012 at 5:07 am

      Make sure the msgbox is uncommented near the bottom. It prints to the immediate window by default, which is why it's private. (You could tweak it to print to a new message or text file. )

      Actually... the msgbox is copyable, so you can get a text list without writing to a file.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 31 Issue 7

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Use Classic Outlook, not New Outlook
  • How to Remove the Primary Account from Outlook
  • Reset the New Outlook Profile
  • Disable "Always ask before opening" Dialog
  • This operation has been cancelled due to restrictions
  • Change Outlook's Programmatic Access Options
  • How to Hide or Delete Outlook's Default Folders
  • Use Public Folders In new Outlook
  • Removing Suggested Accounts in New Outlook
  • How to Delete Stuck Read Receipts
  • Sync Issues and Errors with Gmail and Yahoo accounts
  • Error Opening iCloud Appointments in Classic Outlook
  • Opt out of Microsoft 365 Companion Apps
  • Mail Templates in Outlook for Windows (and Web)
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Sync Issues and Errors with Gmail and Yahoo accounts

Error Opening iCloud Appointments in Classic Outlook

Opt out of Microsoft 365 Companion Apps

Mail Templates in Outlook for Windows (and Web)

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

VBA Basics

How to use the VBA Editor

Work with open item or selected item

Working with All Items in a Folder or Selected Items

VBA and non-default Outlook Folders

Backup and save your Outlook VBA macros

Get text using Left, Right, Mid, Len, InStr

Using Arrays in Outlook macros

Use RegEx to extract message text

Paste clipboard contents

Windows Folder Picker

Custom Forms

Designing Microsoft Outlook Forms

Set a custom form as default

Developer Resources

Developer Resources

Developer Tools

VBOffice.net samples

SlovakTech.com

Outlook MVP David Lee

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2026 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.