ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Formatting macro required (https://www.excelbanter.com/excel-programming/443266-formatting-macro-required.html)

pcor[_4_]

Formatting macro required
 
I would like a macro that will format any selecred cell : It should
format as a NUMBER of 2 decimals
Thanks

Bob Phillips[_4_]

Formatting macro required
 
Activecell.Numberformat = "#,#00.00"

--

HTH

Bob

"pcor" wrote in message
...
I would like a macro that will format any selecred cell : It should
format as a NUMBER of 2 decimals
Thanks




Don Guillett Excel MVP

Formatting macro required
 
On Jun 29, 3:18*am, "Bob Phillips" wrote:
Activecell.Numberformat = "#,#00.00"

--

HTH

Bob

"pcor" wrote in message

...



I would like a macro that will format any selecred cell : It should
format as a NUMBER of 2 decimals
Thanks- Hide quoted text -


- Show quoted text -


If you want it to be truly automatic, put within a
worksheet_selectionchange event macro in the sheet module.


All times are GMT +1. The time now is 05:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com