Add a Check Mark to a Command Bar Button

User avatar
Don Wells
5StarLounger
Posts: 689
Joined: 27 Jan 2010, 16:45
Location: Ottawa, Ontario, Canada

Add a Check Mark to a Command Bar Button

Post by Don Wells »

Can someone show me how to add a check mark to a command button when building a command bar with VBA? As in the attached.
You do not have the required permissions to view the files attached to this post.
Regards
Don

User avatar
HansV
Administrator
Posts: 78557
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Add a Check Mark to a Command Bar Button

Post by HansV »

Set the State property of the command bar button to msoButtonDown. To remove the check mark, set the State property to msoButtonUp.
Best wishes,
Hans