Add Category Picker to Outlook 2010 New MailItem Ribbon

Recently I have started using Outlooks Categories to organize my emails.  It has made like much easier, I set a category on the received email, move it to the archive.  I have created custom search folders that look for that  category.  That way no matter where the email is it always shows up in the search results.  Except for outgoing emails.  I have to go into the Sent folder and set the category.  So, I set out to figure out if  I could set the category before I send the mail, thus saving me a step.

I found the following information on SuperUser.com in the thread In Outlook 2010, can you add “Categories” to the “New Email” Ribbon? 

Create a Macro, because believe it or not Outlook doesn’t not have the Category button available when you try to customize the ribbon.

  1. Open the Visual Basic Window (ALT + F11)
  2. Add a Module (Right-click “Modules” folder –> Insert –> Module
  3. Copy the following code into the module

    Public Sub CategoriesButton()
    
         Dim Item As Outlook.MailItem
    
         Set Item = Application.ActiveInspector.CurrentItem
    
         Item.ShowCategoriesDialog
    
    End Sub

  4. Close the editor

Now to add the macro to the menu

  1. Click the “New E-Mail” button
  2. Right Click –> Customize Ribbon –> Drop Down –> Macros –> Select “Project 1.CategoriesButton and add to a new group.
  3. Rename the group, and Menu item and add Icons if you wish

Thanks QBIK for posting this for all to enjoy.  I am posting to make it easier for me to find this in the future.  Thanks again QBIK.

Add ?Sleep command to Executor

I searched StackOverflow and Google to find out to set my laptop into Sleep mode from the command line.  There were tons of solutions and tones of failures.  I wanted to keep a record of the one the worked for me so here it is.

I wanted to add a ?Sleep command to my favorite launcher application Executor from http://executor.dk.  Like I said earlier there are a lots of opinions about how to do this.  I choose to use SysInternals psshutdown command.

So, I added a new keyword ?sleep with the following parameters:

Command: c:\_path_to_sysinternals\psshutdown
Parameters: –d –t 0
Open as: hidden 

Now I just fire up executor with my shortcut and type ?sleep and enter to set my laptop into sleep mode.

Others say that without turning hibernate off it does a deep sleep and takes longer to restart and will not restart with any key but only the power key.  Not sure about the deep sleep but I do have to kit the power key to wake the laptop up.  I am ok with this since I tend to hit keys on the keyboard when I don’t intend to.  Make the wake up process more intentional.

System Performance Tweaks #2– Delete Pagefile.sys in Windows 7

I have 16GB of memory on my current laptop and recently discovered that it never seems to use much of it, but swaps to the hard drive like crazy. After investigating I found two things that have improved my performance this is one of them. I am also looking at having my work laptop replaced so I wanted to get this documented somewhere that was not going to be lost.

The pagefile.sys is the virtual memory file the system uses to cache data. This file can become very large. Whenever you don’t have enough physical RAM the system can use the virtual RAM to speed up the current process. So, the virtual memory is quite essential for a fast system and it is not recommended to disable it. Even on systems with a lot of RAM you will need this file badly. Actually, the more physical RAM you have, the more virtual memory you should have. As a rule of thumb, you should always have 1.5 times more virtual memory than physical RAM, recommended is 2 times more.

Deleting the pagefile.sys is not a good solution and you should only do it if you need disk space urgently

Disable/Delete Pagefile.sys

  1. Open Control Panel
  2. Click on System and Security
  3. Click on the System header
  4. Click “Advanced system settings” on the sidebar
  5. On the Advanced Tab in the Performance section click Settings…
  6. On the Performance Options dialog click Advanced
  7. Click the change button

image

Final steps

At this point what you do may vary depending what you want the outcome to be.  First uncheck “Automatically manage paging file size of all drives”.  As you can see I opted to keep the pagefile.sys file but make it very small, the other option is to operate without a pagefile.sys file by choosing the “No paging file” option.

System Performance Tweaks #1– Disable Hibernation

I have 16GB of memory on my current laptop and recently discovered that it never seems to use much of it, but swaps to the hard drive like crazy.  After investigating I found two things that have improved my performance this is one of them.  I am also looking at having my work laptop replaced so I wanted to get this documented somewhere that was not going to be lost.

Disable Hibernation

Hibernation uses a lot of disk space to store system state so it can be recovered.  The sleep mode does what I want, but I couldn’t figure out how to get rid of the Hibernate file (hiberfil.sys).  You can delete the hiberfile.sys but it will just come back so you need to disable the Windows Hibernation function.

Disable Hibernation GUI

The Hibernate settings are stored under the Control Panel’s Power Options applet, but they are buried under each power plan’s advanced power settings submenu.

http://i.techrepublic.com.com/blogs/win7_power_options_03.png?tag=siu-container;attachment_1496

Disable Hibernation – Command Line

This is the only guaranteed way to disable Hiberation on Windows Vista, and Windows 7.

  1. Open the command prompt with administrative privileges
  2. Enter “powercfg.exe –h off”
  3. Exit the command prompt

http://i.techrepublic.com.com/blogs/powercfg_01.png?tag=siu-container;attachment_1503

 

Re-enable Hibernation

To re-enable Hibernation, check the Enable Hibernation in the GUI or enter “powercfg.exe –h on” in a command prompt with administrative privileges.

Executor: Where did my keywords go?

I use Executor (http://executor.dk) and love it.  Well, most of the time I do.  Every once in a while it seems to freak out and looses all of it’s settings including keywords.  Loosing the setting are no big deal, but the keywords?

I have use various methods to resolve this in the past, remove and re-install etc.  Last week it happened again.  Removing and re-installing did not help at all, it just looked blank.

Executor does such a great job of just working in the background and requires very little attention I had not explored it’s vast features.  Well, this time I found that all of the default keywords could be restored by importing them from the original files that were used during install.

On the keywords tab context menu is “Import keyword from file…” which allowed me to import see the standard.exc which was all the missing keyword AND a windowskeywords.exc with added some I did have before.

I also noticed a “Export keywords..” with once I had them all setup the way I wanted I promptly used to export them all to a file of my choosing to make it easier to fix next time.

“Import from start-menu…” also looks very interesting and I am sure will save me some typing in the future.

Calendar

<<  August 2014  >>
MonTueWedThuFriSatSun
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567

View posts in large calendar

Month List

AuthorList