Share via


FaceIds on Office toolbar buttons

When creating custom Office toolbar buttons (aka command bars), you can set the FaceId to some icon. But, where do you figure out what values you can use? I found an article on MSDN that helps out:

https://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno97ta/html/faceid.asp

This has an Excel spreadsheet you can use to view the icons associated with the different IDs. However, you have to lower the default security level in Excel to allow unsigned macros to run. And, you can only look at 200 at a time (there icons up in the 10,000 range!). And, that'll only tell you want icons are available in the version of Office you are running. If you are working on code that will work on other versions of Office, you'll have to run this macro in different versions of Excel and compare. Why isn't there just a table up on MSDN somewhere with the different icons available in different versions of Office? And, it would be even nicer if there was a set of enumerations you could paste in your code so you don't have to hard code numbers everywhere.