Become a Columnist Microsoft Exchange Site Microsoft Support SiteMSDN Exchange Site

   

Subscribe to OutlookExchange
Anderson Patricio
Ann Mc Donough
Bob Spurzem
Brian Veal
Catherine Creary
Cherry Beado
Colin Janssen
Collins Timothy Mutesaria
Drew Nicholson
Fred Volking
Glen Scales
Goran Husman
Guy Thomas
Henrik Walther
Jason Sherry
Jayme Bowers
John Young
Joyce Tang
Justin Braun
Konstantin Zheludev
Kristina Waters
Kuang Zhang
Mahmoud Magdy
Martin Tuip
Michael Dong
Michele Deo
Mitch Tulloch
Nicolas Blank
Pavel Nagaev
Ragnar Harper
Ricardo Silva
Richard Wakeman
Russ Iuliano
Santhosh Hanumanthappa
Steve Bryant
Steve Craig
Todd Walker
Tracey J. Rosenblath
 
 

Adding your own custom icon to an Outlook toolbar

If you are interested in using your own custom icon (instead of one of the built-in icons) in the toolbars you will have to write a bit more code. Since this code requires the use of the clipboard, you will not be able to use this in VBScript. However, in an Outlook COM Add-In it works just fine. This method only seems to work with bitmap files. If you have .ico files, convert them to .bmp files first with your favorite graphic editor.

Dim objCBButton1 As Office.CommandBarButton
...
Clipboard.SetData LoadPicture("C:\MYGraphics\MyIcon.BMP"), vbCFBitmap
objCBButton1.PasteFace
Clipboard.Clear
...
    

  

Adding your own custom icon to an Outlook toolbar


Disclaimer: Your use of the information contained in these pages is at your sole risk. All information on these pages is provided "as is", without any warranty, whether express or implied, of its accuracy, completeness, fitness for a particular purpose, title or non-infringement, and none of the third-party products or information mentioned in the work are authored, recommended, supported or guaranteed by Stephen Bryant or Pro Exchange. OutlookExchange.Com, Stephen Bryant and Pro Exchange shall not be liable for any damages you may sustain by using this information, whether direct, indirect, special, incidental or consequential, even if it has been advised of the possibility of such damages.

Copyright Stephen Bryant 2008