Methods
--------- --------- --------- --------- --------- --------- --------- --------- --------- 
Properties
Font.Bold = True/False   글씨 굵게
 ActiveCell.Font.Bold = True
Color   글꼴의 색상을 RGB(0,255,0) 또는 vbRed 으로 설정. xlColorIndexAutomatic : 자동색상(검정)
 ActiveCell.Font.Color = vbRed
Interior   셀 색상 또는 그리기 개체 채우기 색상. xlColorIndexNone : 채우기 없음
 ActiveCell.Interior.Color = vbRed
ColorIndex   글꼴의 색상을 설정된 번호로 설정
 ActiveCell.Font.ColorIndex = 3
FontStyle   글꼴 스타일을 허용되는 Regular, Italic, Bold, Bold Italic 로 설정
 ActiveCell.Font.FontStyle = "Bold Italic"
Italic = True/False   글꼴 스타일이 기울임꼴이면 True
 ActiveCell.Font.Italic = True
Name   글꼴 글씨체를 설정
 ActiveCell.Font.Name = "궁서체"
Size   글꼴의 크기를 설정
 ActiveCell.Font.Size = 9
Strikethrough = True / False   글꼴이 수평선으로 칠해진 경우 True
 ActiveCell.Font.Strikethrough = True
Subscript = True / False    글꼴이 아래 첨자로 서식이 지정되면 True. 기본 False
 ActiveCell.Font.Subscript = True
Superscript    글꼴이 위 첨자로 서식이 지정되면 True. 기본 False
 ActiveCell.Font.Superscript = True
Underline <상세  글꼴에 밑줄을 설정
 ActiveCell.Font.Underline = True

 

 

형식
ActiveCell.Font.Underline = xlUnderlineStyleSingle <이전
지정값 설명
xlUnderlineStyleSingle 또는 True/False   단일 밑줄
xlUnderlineStyleDoubleAccounting   두 개의 얇은 밑줄이 서로 가깝게 배치
xlUnderlineStyleDouble   이중 두꺼운 밑줄

 

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

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

Sort  (0) 2021.12.04
Borders  (0) 2021.12.04
Range  (0) 2021.12.04
Worksheet  (0) 2021.12.04
Workbook  (0) 2021.12.04

+ Recent posts