I thought it would work but for some reason it doesn't.
What I'm trying to do is add borders around every cell from Columns 1 to 11 and Rows 1 to Seq=71
It does work except it only draws the border on every other cell instead of every cell.
Any suggestions???
Thank you
I have the following code:
For C2 = 1 To 11
For R2 = 1 To Seq
Cells(R2, C2).Select
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
R2 = R2 + 1
Next
C2 = C2 + 1
Next
What I'm trying to do is add borders around every cell from Columns 1 to 11 and Rows 1 to Seq=71
It does work except it only draws the border on every other cell instead of every cell.
Any suggestions???
Thank you
I have the following code:
For C2 = 1 To 11
For R2 = 1 To Seq
Cells(R2, C2).Select
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
.Weight = xlThin
.ColorIndex = xlAutomatic
End With
R2 = R2 + 1
Next
C2 = C2 + 1
Next