Quantcast
Channel: Apache OpenOffice Community Forum
Viewing all articles
Browse latest Browse all 1281

Calc • Re: Number format icon for Comma 0

$
0
0
Comma 0, is a thousands separator with 0 decimal places. I can certainly do that by right clicking the cell/range and enter the formatting menu. I was just looking for a shortcut icon to place on the tool bar to make it simpler.
Select the cell. Record a macro: Tools → Macros → Record → Format → Cells → Numbers → Category:Number → Format:-1,234 (select that from the list) → OK → Stop recording → Give your macro a name and save it. I tested that a macro which I created will apply that number format to a cell or cell range.

[Tutorial] Favorite Recorded Calc Macros

To put the macro on a toolbar try: Tools → Customize → Toolbar → Toolbar:Formatting → Add → Category:OpenOffice Macros → Select your macro → Add → Close → Position the macro on the toolbar as desired using the ⬆︎⬇︎ buttons → OK. I don't use toolbars so I don't know what options you might have in that dialog for choosing an icon.

Personally I would create a style for that cell format and record applying the style instead using Format → Cells. I would save the style in my default Calc template so it's available in any spreadsheet which I create.

Getting Started Guide, Chapter 3: Using Styles and Templates

If this solved your problem please go to your first post use the Edit button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.

[Tutorial] Ten concepts that every Calc user should know

Statistics: Posted by MrProgrammer — Sat Sep 07, 2024 6:47 pm



Viewing all articles
Browse latest Browse all 1281

Trending Articles