|
|
|
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