Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Formating Cells in VBA

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default 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?




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




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
Formating cells Shazza Excel Discussion (Misc queries) 0 May 5th 10 01:56 PM
formating cells stremetzky Excel Worksheet Functions 3 May 25th 07 10:30 AM
conditional formating cells i Excel based on other cells values Elias Petursson Excel Worksheet Functions 3 May 23rd 06 06:45 PM
formating of certain cells not possible! Marty Excel Discussion (Misc queries) 1 May 23rd 06 04:19 PM
Formating Cells tkern Excel Discussion (Misc queries) 1 August 17th 05 11:01 PM


All times are GMT +1. The time now is 11:28 AM.

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

About Us

"It's about Microsoft Excel"