ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Formating Cells in VBA (https://www.excelbanter.com/excel-programming/277737-formating-cells-vba.html)

Greg Bloom

Formating Cells in VBA
 
How do I format a cell to be currency with VBA Code?



Serge[_2_]

Formating Cells in VBA
 
Goto Tools-macro-record macro
While macro is recording, select the cell, right click and select Format
Cells..., from Category listbox select Currency, OK. Click'Stop' button to
stop macro recording. Press Alt-F11, goto Modules and take a look at the
code for Macro1

"Greg Bloom" wrote in message
news:ldJbb.547825$Ho3.95541@sccrnsc03...
How do I format a cell to be currency with VBA Code?





Tumbleweed

Formating Cells in VBA
 
Range("Sheet1!C7:C17).NumberFormat = "$#,##0.00"


"Greg Bloom" wrote in message
news:ldJbb.547825$Ho3.95541@sccrnsc03...
How do I format a cell to be currency with VBA Code?






All times are GMT +1. The time now is 12:00 AM.

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