New toolbar button

G

Guest

Can i create a new toolbar button which will format a cell in a particular
style?

I am trying to create a style similar to "Comma style" but without any
decimal places.
 
G

Guest

why not create such a style and apply it in the normal way.

or create it an link it to a button

Sub MyMacro()
selection..Style = "MyComma"
End Sub

go to tools => customize
command tab
right window go to Macros
left window, select custom button and drag it to a toolbar.

right click on the button and select assign macro.

assign the above macro. Make other modifications as desired

close the customize dialog.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top