Part III: Web 2.0 > Online Project Management > Gmail > Outlook > VBA > Labels
Part III: Gmail, Outlook, VBA and Labels
If you have read my recent ramblings on online project management and distributed teamwork (Part II), then you already know that Gmail serves as our little organization's central email account and is as such one of our backbones. Yes, Gmail is Beta, but so far we've not had a single problem with the account. Of course we maintain local backups of all our communications. If worst comes to worst and the Gmail account vanishes over night, we'd still be in complete posession of our data. And although I've never had to attempt this, I'm confident that it wouldn't be too difficult to re-import our email conversations into a Gmail account. If this is an issue for you, or if you are playing with the thought to upload your Outlook (or Outlook Express) messages to Gmail, have a look at these tools:
Gmail Loader or gExodus
When Google introduced Gmail with its 2GB of storage and built-in search function, the way people managed their emails changed somewhat. Suddenly you didn't have to worry anymore whether maybe one of your friends had just rendered your email account useless by sending you 20MB worth of cute puppies. As a consequence you might have not received that very important email from your possible next employer, or from the girl you'd met last weekend, or the confirmation message that you'd won the lottery. Actually, cross out the last one - that would have to be spam anyways.
There is another Gmail feature that has caused some excitement. If you've visited any of the Gmail forums in the past then you've probably come across heated debates on the "Labels versus Folders" issue. Personally I don't really have a preference. If you are happy with your well-designed folder structure you have probably no reason to switch to labels. For me, the issue was a different one. Gmail doesn't give you a folder structure (yes, you can imitate a folder system with labels but that really becomes cumbersome once you need sub-folders), so one is forced to use labels. Once you start using them, you'll discover that they are actually quite powerful and flexible. You won't restrict yourself to assigning a single label to a complex message, but will maybe use two or three. Where's the problem with that? Well, nowhere really, at least not until you start downloading these emails to your offline email client, for example Outlook.
Suddenly you will start wondering how you are going to organize these emails in a folder structure, especially if you are using an Outlook version that doesn't support the more flexible concept of search folders. A message that is labelled "Administration", "Meeting" and "Recent Events" on Gmail - in which folder are you going to store that in Outlook? Luckily, Outlook has everything that is needed to replicate Gmail's label system, and has already offered this functionality long before Gmail made the system popular.
Outlook's equivalent to labels are categories. Categories can not only be assigned to messages but also to contacts, appointments or tasks. So it's easy to assign the message from the example above the categories "Administration", "Meeting" and "Recent Events". Once that is done, you need to define a few custom views in order to filter your messages by categories. Say you activate the view "Administration", then only messages that contain the label (category) "Administration" will be displayed. Similarly, a view called "Archive" will only show emails that have an "Archive" label. And an "Inbox" view will only display items that do NOT have the "Archive" keyword. The principle is clear, but the workflow is a bit awkward. Assigning labels (categories) and activating views doesn't happen as easily as with Gmail...
I decided to find out if I could improve things a little with some old-fashioned VBA code. That's one thing that I appreciate about Outlook (actually, about the whole MS Office suit): so much becomes possible with a few lines of VBA. Implementing a (hopefully) better interface for labels didn't turn out to be too difficult. I call the result Outlabel :) - a little helper tool designed and tested for Outlook 2000 (might also work with later versions of Outlook).
Below is a description of my implementation. If you think it might be useful to you, feel free to download the code. Make sure though you read the disclaimer.
- Label emails, contacts, appointments and tasks
- Integrates into Outlook's forms (messages, contacts, ..)
- Integrates into Outlook's main toolbar
- Contrary to Gmail it allows you to have sub-labels
- A single, keystate-controlled menu allows you to:
Create labels, assign labels, remove labels, rename labels;
View all items with a particular label - Use shortcuts for your labels:
Assign a label to an item with only two keystrokes
No mouse or scrolling necessary - Create easily and in no time hundreds of labels
by editing a simple text file
How to use it ...
It is quite simple, really. After installation, you'll find a new menu called "Label" on the Outlook main toolbar and on the toolbars of the email, appointment, contact and task windows. With the help of these menus you can create, assign, and remove labels; as well as choose which items you want to have displayed (items with a particular label). The image above contains a table that tells you in detail what result you get when you click on a label while you press the Shift, the Ctrl or Caps key. Below a short summary ...
- Click without a key assigns that label to the selected item (s)
- Click with Shift key removes that label from the selected item(s)
- Click with Ctrl key shows all items with that label
- Click with Caps ON renames that label everywhere
- Click with Ctrl AND Shift deletes that label from everywhere
You can not only access the Label menu from the Outlook main toolbar but also for example from the message window. In that case, only the opened item will be affected. Note the additional bar at the bottom of the window - it displays the labels (categories) assigned to that particular item. This bar is only available in email windows, since contacts, appointments and tasks already have a visible categories field.

And finally a screenshot of the Outlook Inbox showing the Label (category) column ...

I've been using Outlabel for a while and it works well for me. If you'd like to give it a try, feel free to download it at the bottom of this page.
One problem remains: I use Pop3 to get my emails from Gmail into my local Outlook client. Unfortunately, there doesn't seem to be a way to download the messages WITH the labels that were already attached to them in Gmail. That means I have to label them again once they arrive in Outlook. If you have an idea how to get by this limitation I'd love to hear from you.
LEGAL DISCLAIMER
Download (350kB): Outlabel.zip
Labels: Code, Gmail, Labels, Outlook, VBA
Link


