Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this
Selection.NumberFormat = "_(* #,##0.0_);_(* (#,##0.0);_(* "" - ""_);_(@_)" -- Regards, Peo Sjoblom "FuadsCurse" wrote in message ... Peo Why is it choking on this line? Selection.NumberFormat = "_(* #,##0.0_);_(* (#,##0.0);_(* " - "_);_(@_)" Brett "Peo Sjoblom" wrote: Record a macro and save it to your personal.xls while applying the format, would look something similar to Option Explicit Sub Macro1() Selection.NumberFormat = "$#,##0_);[Red]($#,##0)" End Sub now edit it a bit and add 2 lines Option Explicit Sub Macro1() Application.DisplayAlerts = False Selection.NumberFormat = "$#,##0_);[Red]($#,##0)" Application.DisplayAlerts = False End Sub now attach it to a custom button -- Regards, Peo Sjoblom "FuadsCurse" wrote in message ... How do I assign a toolbar button to a custom number format I created? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I add phone number format as a permanent custom format? | Excel Discussion (Misc queries) | |||
Return SEARCHED Column Number of Numeric Label and Value | Excel Worksheet Functions | |||
Format a cell with a custom number format | Excel Worksheet Functions | |||
custom number format | Excel Discussion (Misc queries) | |||
Stubborn toolbars in Excel | Excel Discussion (Misc queries) |