i am trying to set the column width of several columns that are not adjacent to each other e.g. column A, column C, column Z
the code i have used is :
Private Sub CommandButton1_Click()
With Worksheets("sheet1"
.Columns("A:C"
.ColumnWidth = 15
End With
End Sub
this works great for adjacent columns, but how do i specify a range of columns that are non-adjacent?
Craig
the code i have used is :
Private Sub CommandButton1_Click()
With Worksheets("sheet1"
.ColumnWidth = 15
End With
End Sub
this works great for adjacent columns, but how do i specify a range of columns that are non-adjacent?
Craig