How do you Edit a toolbar button image through code?

arage

Registered User.
Local time
Today, 18:31
Joined
Dec 30, 2000
Messages
537
How do you Edit a toolbar button image through code?
How do you “Edit a toolbar button image” through code because I am creating my toolbar through code and can only use the STYLE property to tell it to be msoButtonIconAndCaption, but how can I specify the image to be used as an ICON? Please advise. :D
 
Hi Arage
I think what you are looking for is FaceId. It's a long time since I did the following code which is a direct extract from from my app. I can remember it gave me a headache at the time. Hope it helps.

Set X = CommandBars.Add(menuname, msoBarPopup)

Set Y = X.Controls.Add
With Y
.Caption = Desc
.OnAction = "=SetPhoneNumber(" & deviceCount & ")"
.FaceId = 187
deviceCount = deviceCount + 1
End With
End If

Keith
 

Users who are viewing this thread

Back
Top Bottom