Professional Documents
Culture Documents
2 3 4 7 8
2 3 4 7 8
Dim ws As Worksheet
Set ws = ThisWorkbook.Sheets("2024 년")
' "월값"에 따른 시작 열 설정
startCol = 12 + monthValue - 1
While ws.Cells(cell.Row, startCol).Interior.Color = RGB(208, 206, 206)
startCol = startCol - 1
Wend
' 결과값 증가 조건 확인
If ws.Cells(cell.Row, startCol).Interior.Color = RGB(0, 176, 80) Then
result = result + 1
End If
End If
Next cell
' 결과 저장
ws.Range("결과값").Value = result
ws.Range("담당업체").Value = count - 1