Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Changing a column's number of decimal places

I want to change a specific column's number of decimal
places to 1. How can I do this simply from within code?
Do I have to select the column first, then apply the code
or can I change the column without selecting it first?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Changing a column's number of decimal places

Hi
one way:
columns(1).numberformat="0.0"

--
Regards
Frank Kabel
Frankfurt, Germany


Shaun Allan wrote:
I want to change a specific column's number of decimal
places to 1. How can I do this simply from within code?
Do I have to select the column first, then apply the code
or can I change the column without selecting it first?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Changing a column's number of decimal places

As simple as that! Amazing! Thank you!!

-----Original Message-----
Hi
one way:
columns(1).numberformat="0.0"

--
Regards
Frank Kabel
Frankfurt, Germany


Shaun Allan wrote:
I want to change a specific column's number of decimal
places to 1. How can I do this simply from within code?
Do I have to select the column first, then apply the

code
or can I change the column without selecting it first?

.

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
Changing Decimal Places for Multiplication Glen Davidson Excel Discussion (Misc queries) 2 October 30th 09 01:57 PM
changing decimal places according to formula result Valeria Excel Discussion (Misc queries) 6 September 11th 09 05:29 PM
Chart Number Decimal Places John Excel Discussion (Misc queries) 6 July 2nd 09 08:17 PM
Converting a number to 2 decimal places mattslav Excel Discussion (Misc queries) 2 June 4th 05 04:10 AM
Changing default decimal places Zecarioca Excel Discussion (Misc queries) 2 April 13th 05 08:22 PM


All times are GMT +1. The time now is 03:20 PM.

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"