Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 84
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,089
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add new currency Symbol in Format/Cell/Currency NOORZAD Excel Discussion (Misc queries) 2 June 22nd 09 07:59 AM
How to format cells in Excel 2007 (i.e. currency format)? DonR Excel Discussion (Misc queries) 2 May 25th 08 11:16 PM
Column with currency & text - how to format? Martin ©¿©¬ @nohere.net Excel Discussion (Misc queries) 2 May 11th 08 04:52 PM
Changing format of column from "general" to "currency" Old Car Excel Discussion (Misc queries) 1 April 29th 05 09:49 AM
Conversion from currency value to currency text format Frank Kabel Excel Programming 1 August 18th 04 10:06 PM


All times are GMT +1. The time now is 06:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"