Im trying to alternate the alignment of a column to make reading a little easier, but even though im specifying the column J it always applies the formatting to column A
If i create a new sheet and run this against a simple 1 column sheet, it works great and as expected. But i need it to run against column J
Sub alternateAlignLeft()
Columns("J:J").Select
For rowx = 2 To 1000 Step 2
Cells(rowx, 1).HorizontalAlignment = xlLeft
Next
End Sub
Sub alternateAlignRight()
Columns("J:J").Select
For rowx = 1 To 1000 Step 2
Cells(rowx, 1).HorizontalAlignment = xlRight
Next
End Sub
I need this code, which works great against column A, to work only for column J. What am i doing wrong?