I am trying to create a Macro that formats each column to a particular width. But, when I run the Macro, it just sets all the columns' width to 1. Where am I going wrong?
Code:
Sub Macro4()'
' Macro4 Macro
'
'
Selection.ColumnWidth = 1
Columns("B:B").Select
Range("B2").Activate
Selection.ColumnWidth = 24
Columns("C:C").Select
Range("C2").Activate
Selection.ColumnWidth = 10
Columns("D:D").Select
Range("D2").Activate
Selection.ColumnWidth = 17
Columns("E:E").Select
Range("E2").Activate
Selection.ColumnWidth = 15
Columns("F:F").Select
Range("F2").Activate
Selection.ColumnWidth = 1
Columns("G:G").Select
Range("G2").Activate
Selection.ColumnWidth = 15
Columns("H:H").Select
Range("H2").Activate
Selection.ColumnWidth = 1
End Sub