ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how can I use VBA to format a column to currency (https://www.excelbanter.com/excel-programming/362470-how-can-i-use-vba-format-column-currency.html)

SITCFanTN

how can I use VBA to format a column to currency
 
I'm trying to use code to force the entire column to be currency. I also
have another column I'm trying to force to text, any help is appreciated

Bob Phillips[_6_]

how can I use VBA to format a column to currency
 
Columns(3).Numberformat = "$#,##0.00"

Columns(4).NumberFormat = "@"

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"SITCFanTN" wrote in message
...
I'm trying to use code to force the entire column to be currency. I also
have another column I'm trying to force to text, any help is appreciated




Trevor Shuttleworth

how can I use VBA to format a column to currency
 
Use the macro recorder while you format the column manually. That should
give you the start you need.

Regards

Trevor


"SITCFanTN" wrote in message
...
I'm trying to use code to force the entire column to be currency. I also
have another column I'm trying to force to text, any help is appreciated





All times are GMT +1. The time now is 10:36 AM.

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