VBA Windows 7 style buttons

Tom Doodler picture Tom Doodler · Sep 1, 2015 · Viewed 10k times · Source

I'm pretty sure this question has been asked a lot around the web and I've read a lot of the questions and their "answers" on several forums but I've never seen a clear answer so I'd like to know:

Is is possible, to use Windows 7 style buttons

enter image description here

in Excel VBA or do I have to use these grey things looking like they come from

enter image description here

?

I dont want to use images, I mean importing these "ActiveX Controls", I think thats their name.

Answer

Ralph picture Ralph · Sep 1, 2015

I am unaware of a solution where you can make use of the "Windows 7 style buttons". Yet, I would like to note that programming does not require you to use the "Developer" tab exclusively. In other words: just because you want a button doesn't mean that you have to use just that from the Developer tab. In fact, almost any shape within Excel can be assigned a macro.

The easiest way to get a button similar to the "Windows 7 style button" is to Insert a Rectangle or a Rounded Rectangle from the Shapes menu. The "fancy" grey coloring can be easily achieved when you click on that shape and then on the Format tab for that shape select one of the predefined grey-scale shape style. These buttons look extremely similar to what you want and can be easily assigned a macro by right-clicking on these shapes.

A comparison of buttons created with Excel shapes to the standard Windows 7 button