0
이 형식에서는 .style
함수를 사용하려고하지만 VBA에서는이를 사용하지 않으려 고합니다. .style
을 잘못 사용하고 있습니까, 아니면 세포를 채색하는 데 다른 방법을 사용해야합니까?Excel-vba : 조건부 서식 : 셀 스타일
'Conditional Formatting
.FormatConditions.Delete
.FormatConditions.Add xlErrorsCondition, Formula1:= _
"=IF(" & Cells(SelectedGroup, AreaSelected(2)).Offset(2, 1) & "=""Not Used"",TRUE, _
FALSE)"
.FormatConditions(1).Style = "Bad"
.FormatConditions.Add xlErrorsCondition, Formula1:= _
"=IF(" & Cells(SelectedGroup, AreaSelected(2)).Offset(2, 1) & "=""Used"",TRUE,FALSE)"
.FormatConditions(1).Style = "Good"
, 스타일 formatcondition하는 방법이되지 않습니다 : https://msdn.microsoft.com/en-us/vba/excel-vba/articles/formatcondition-object-excel –