jo15765
Well-known Member
- Joined
- Sep 23, 2011
- Messages
- 591
I am attempting unsuccesfully to format only a few columns as currency. My syntax formats all cells in the worksheet which is not what I am after. This is the syntax I have tried, what should I update in order to ensure only columns C - H are updated to currency format?
EDIT - I forgot to mention that stepping through my code, the line
Selects my entire used range not <strong>ONLY</strong> columns C - H
Code:
Cells.Select
Cells.EntireColumn.AutoFit
Range("A1").Select
Columns("C:H").Select
Selection.NumberFormat = "$#,##0"
Range("A1").Select
EDIT - I forgot to mention that stepping through my code, the line
Code:
Columns("C:H").Select
Selects my entire used range not <strong>ONLY</strong> columns C - H
Last edited: