Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default how to define decimal places in macro?

how do i define the cell A2:E20 to have 2 decimal placing??


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default how to define decimal places in macro?

hi
try....
range("A2:E20").NumberFormat = "0.00"

regards
FSt1

"Oligo" wrote:

how do i define the cell A2:E20 to have 2 decimal placing??


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default how to define decimal places in macro?

Hi,

Try

[A2:E20].NumberFormat ="0.00"

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Oligo" wrote:

how do i define the cell A2:E20 to have 2 decimal placing??


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default how to define decimal places in macro?

Range("a2:e20").numberformat ="0.00"

Robert Flanagan
http://www.add-ins.com
Productivity add-ins and downloadable books on VB macros for Excel

"Oligo" wrote in message
...
how do i define the cell A2:E20 to have 2 decimal placing??




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
decimal places narp[_2_] Excel Discussion (Misc queries) 2 May 14th 08 09:39 PM
Decimal Places JHL Excel Discussion (Misc queries) 4 April 24th 07 06:44 PM
Subtracting two 2-decimal place numbers gives result 13-decimal places? [email protected] Excel Worksheet Functions 5 March 12th 07 10:38 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM
add 2 decimal places Bill M. Excel Discussion (Misc queries) 2 January 28th 05 10:21 PM


All times are GMT +1. The time now is 08:17 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"