With
Worksheets(
"Sheet1"
)
gggg = .Range(
"LA1"
).Column
gggh = .Range(
"BOJ1"
).Column
For
gggi = gggg
To
gggh
If
.Cells(gggi, 5).Value =
"1"
Then
.Cells(gggi, 6).Value =
"1"
ElseIf
.Cells(gggi, 1).Value < .Cells(ggi, 36).Value
Then
.Cells(gggi, 6).Value =
"1"
ElseIf
.Cells(gggi, 1).Value > .Cells(ggi, 37).Value
Then
.Cells(gggi, 6).Value =
"1"
Else
: .Cells(gggi, 6).Value =
"0"
End
If
Next
End
With