Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default How to format column 7 ?

In VBA, if I have the integer 7, how do I format column 7?

The recorder does

Columns("G:G").Select
Selection.Numberformat = "blah"

Thanks.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default How to format column 7 ?

Columns(7).NumberFormat = "#.00.00"

--


Gary


wrote in message
ups.com...
In VBA, if I have the integer 7, how do I format column 7?

The recorder does

Columns("G:G").Select
Selection.Numberformat = "blah"

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 269
Default How to format column 7 ?

Columns(7).Select
Selection.NumberFormat = "#.0"
or
Columns(7).NumberFormat="#.0"
James

wrote:
In VBA, if I have the integer 7, how do I format column 7?

The recorder does

Columns("G:G").Select
Selection.Numberformat = "blah"

Thanks.


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default How to format column 7 ?


Myinteger = 7
Columns(Myinteger).Select
Selection.NumberFormat = "Blah"

wrote:
In VBA, if I have the integer 7, how do I format column 7?

The recorder does

Columns("G:G").Select
Selection.Numberformat = "blah"

Thanks.


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 do i change column header from R[1] C format to A1 format? lovnlife Excel Discussion (Misc queries) 4 April 5th 10 07:29 PM
format cells in one column based on value in another column SuzyQ New Users to Excel 3 July 19th 09 03:33 AM
Format column to link file names in that column desiaashik Excel Discussion (Misc queries) 2 March 29th 09 05:11 PM
How do I format the A/ B Column to be fixed like numeric column April Excel Worksheet Functions 0 August 17th 07 01:57 AM


All times are GMT +1. The time now is 06:11 PM.

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"