Jenedge73
asked on
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?
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.
ASKER
Thanks. I added the macro to a ribbon. Too bad you can’t customise the comma in the home tab.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you will have to use something like:
Sub sbSetCustomFormat()
Selection.NumberFormat = "_($* #,##0_);_($* (#,##0);_($* ""-""_);_(@_)"
End Sub