ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Add Icon to Toolbar (https://www.excelbanter.com/excel-programming/288217-add-icon-toolbar.html)

SS[_3_]

Add Icon to Toolbar
 
I am having troubling finding how to add an icon to my
custom toolbar button.

Set NewSheetCBC = Toolbar.Controls.Add
(Type:=msoControlButton)
With NewSheetCBC
.Caption = "New Sheet"
.State = msoButtonUp
.Style = msoButtonIconAndWrapCaptionBelow
'.Icon = THIS IS WHERE I AM NOT SURE WHAT TO ADD

.TooltipText = "Create a new overtime sheet/new
overtime week."
End With


Can anyone tell me a. is there a set of avilable icons to
pull from, b. where to find it, c. how to write the line
of code?

Thanks

SS

Rob van Gelder[_4_]

Add Icon to Toolbar
 
SS,

Try .FaceID

There are utilities out there for displaying a list of predefined icons.
Do a search for "faceid browser"

Rob


"SS" wrote in message
...
I am having troubling finding how to add an icon to my
custom toolbar button.

Set NewSheetCBC = Toolbar.Controls.Add
(Type:=msoControlButton)
With NewSheetCBC
.Caption = "New Sheet"
.State = msoButtonUp
.Style = msoButtonIconAndWrapCaptionBelow
'.Icon = THIS IS WHERE I AM NOT SURE WHAT TO ADD

.TooltipText = "Create a new overtime sheet/new
overtime week."
End With


Can anyone tell me a. is there a set of avilable icons to
pull from, b. where to find it, c. how to write the line
of code?

Thanks

SS





All times are GMT +1. The time now is 03:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com