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.LineStyle = xlContinuous <이전
지정값 설명
xlContinuous   실선
xlDash   긴점선
xlDashDot   대시와 점을 번갈아가며
xlDashDotDot   대시뒤에 점두개
xlDot   점선
xlDouble   두줄선
xlLineStyleNone   라인 없음
xlSlantDashDot   드릴선

 

 

형식
ActiveCell.Borders.Item(xlEdgeBottom).Color = vbRed <이전
지정값 설명
xlDiagonalDown   셀의 좌상 - 우하 이어지는 테두리
xlDiagonalUp   셀의 좌하 - 우상 이어지는 테두리
xlEdgeBottom   하단 테두리
xlEdgeLeft   좌측 테두리
xlEdgeRight   우측 테두리
xlEdgeTop   상단 테두리
xlInsideHorizontal   범위 외부의 테두리를 제외한 범위의 모든 셀에 대한 가로 테두리
xlInsideVertical   범위 외부의 테두리를 제외한 범위의 모든 셀에 대한 세로 테두리

 

 

형식
ActiveCell.Borders.Weight = xlThin <이전
지정값 설명
xlHairline   가장 얇은 테두리
xlMedium   중간 테두리
xlThick   가장 넓은 테두리
xlThin   얇은 테두리

 

출처: Microsoft/Docs/Office VBA Reference/Excel

'링크 > VBA' 카테고리의 다른 글

Comment  (0) 2021.12.04
Sort  (0) 2021.12.04
Font  (0) 2021.12.04
Range  (0) 2021.12.04
Worksheet  (0) 2021.12.04

+ Recent posts