| Methods |
| --------- --------- --------- --------- --------- --------- --------- --------- --------- |
| Properties |
| Color |
테이블의 색상을 RGB(0,255,0) 또는 vbRed 으로 설정 |
| ActiveCell.Borders.Color = vbRed |
| LineStyle <상세 |
테두리의 선 스타일을 설정 |
| ActiveCell.Borders.LineStyle = xlContinuous |
| Item <상세 |
테두리 중 하나를 나타냄 |
| ActiveCell.Borders.Item(xlEdgeBottom).Color = vbRed |
| Weight <상세 |
테두리의 두께를 설정 |
| ActiveCell.Borders.Weight = xlThin |
| LineStyle = 1 |
셀 테두리 타입 번호 |
| ActiveCell.Borders.LineStyle = 1 |
| ColorIndex = 1 |
색상표에 번호 |
| ActiveCell.Borders.ColorIndex = 1 |
| 형식 |
| ActiveCell.Borders.Item(xlEdgeBottom).Color = vbRed <이전 |
| 지정값 |
설명 |
| xlDiagonalDown |
셀의 좌상 - 우하 이어지는 테두리 |
| xlDiagonalUp |
셀의 좌하 - 우상 이어지는 테두리 |
| xlEdgeBottom |
하단 테두리 |
| xlEdgeLeft |
좌측 테두리 |
| xlEdgeRight |
우측 테두리 |
| xlEdgeTop |
상단 테두리 |
| xlInsideHorizontal |
범위 외부의 테두리를 제외한 범위의 모든 셀에 대한 가로 테두리 |
| xlInsideVertical |
범위 외부의 테두리를 제외한 범위의 모든 셀에 대한 세로 테두리 |
출처: Microsoft/Docs/Office VBA Reference/Excel