Nhờ anh chị viết code gọn lại
Em tạo một code viết border nhưng mà do e chỉ bít recode lại mà ko bít làm sao cho code gon lại và không muốn có chứa nhiều with and endwith
nhờ a chị chỉ dùng
Sub abc()
Range("C19
26").Select
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
End With
End Sub
Em tạo một code viết border nhưng mà do e chỉ bít recode lại mà ko bít làm sao cho code gon lại và không muốn có chứa nhiều with and endwith
nhờ a chị chỉ dùng
Sub abc()
Range("C19
With Selection.Borders(xlEdgeLeft)
.LineStyle = xlContinuous
End With
With Selection.Borders(xlEdgeTop)
.LineStyle = xlContinuous
End With
With Selection.Borders(xlEdgeBottom)
.LineStyle = xlContinuous
End With
With Selection.Borders(xlEdgeRight)
.LineStyle = xlContinuous
End With
End Sub


