setting default number Format Excel 2010

Is there any way to set the number  format in the ribbon of excel 2010 to a custom format?
Jenedge73Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MagaduCommented:
One way you can do, is by creating a macro that applies formatting you need and adding it to the Ribbon, but i have feeling there should be an easier way that does not require VBA.

you will have to use something like:

Sub sbSetCustomFormat()
 Selection.NumberFormat = "_($* #,##0_);_($* (#,##0);_($* ""-""_);_(@_)"
End Sub
0
Rory ArchibaldCommented:
You can create a custom group on a ribbon tab and assign a macro button to it, or you can alter the relevant style of a blank workbook to use the formatting you want, then save it as a template called book.xltx in your XLSTART folder. Note that this template will be used if you use Ctrl+N or the New workbook button to create a new workbook, but not if you use File-New-Blank workbook.
0
Jenedge73Author Commented:
Thanks.  I added the macro to a ribbon.  Too bad you can’t customise the comma in the home tab.  
0
Rory ArchibaldCommented:
You can - just not through the UI. See Ron's pages here: http://www.rondebruin.nl/ribbon.htm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.