ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to format column 7 ? (https://www.excelbanter.com/excel-programming/373535-how-format-column-7-a.html)

[email protected]

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.


Gary Keramidas

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.




Zone

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.



[email protected]

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.




All times are GMT +1. The time now is 01:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com