How to have changable image (icon) for ribbon buttons ?

How to have changable image (icon) for ribbon buttons ?

szczepan.pazucha
Explorer Explorer
274 Views
1 Reply
Message 1 of 2

How to have changable image (icon) for ribbon buttons ?

szczepan.pazucha
Explorer
Explorer

Hi All.

I have made macro in VBA to one-click "change priority selection' (from component to part or from part to component )

I have add button for this macro in ribbon and that button have own image.

 

Question is how to make  button image to change according to selected state ??

In general is it possible to change / refresh button image after clicking on it or after selected action ???

0 Likes
275 Views
1 Reply
Reply (1)
Message 2 of 2

Dev_rim
Advocate
Advocate

Hi There,

As I know you can not change a buttons icon dynamically. But there can be an other solution (hacky one).

 

So you can create all the buttons and change their visibility dynamically I think. Also you can create a new button when you need with new one , with new icon. And delete the old one.

But I am pretty sure you can not change the icons dynamically, if I am wrong more experienced developers can correct me.

 

Regards,

Devrim

If my answer is solved your problem, please mark it as Solution

Freundliche Grüße / Kind Regards