Professional Documents
Culture Documents
Codevba
Codevba
Dim rg As Range
Set rg = Range("C10:C15")
If (rg.Font.ColorIndex = 1) Then
rg.Font.ColorIndex = 3
rg.Font.ColorIndex = 1
End If
If (rn1.Font.ColorIndex = 1) Then
rn1.Font.ColorIndex = 44
End If
If (rv2.Font.ColorIndex = 1) Then
rv2.Font.ColorIndex = 44
End If
If (rn3.Font.ColorIndex = 1) Then
rn3.Font.ColorIndex = 44
End If
If (rn4.Font.ColorIndex = 1) Then
rn4.Font.ColorIndex = 44
End If
If (rn5.Font.ColorIndex = 1) Then
rn5.Font.ColorIndex = 44
End If
If (rn6.Font.ColorIndex = 1) Then
rn6.Font.ColorIndex = 44
End If
If (rn7.Font.ColorIndex = 1) Then
rn7.Font.ColorIndex = 44
End If
If (rn8.Font.ColorIndex = 1) Then
rn8.Font.ColorIndex = 44
End If
If (rn9.Font.ColorIndex = 1) Then
rn9.Font.ColorIndex = 44
End If
If (rv1.Font.ColorIndex = 1) Then
rv1.Font.ColorIndex = 27
End If
If (rn2.Font.ColorIndex = 1) Then
rn2.Font.ColorIndex = 27
End If
If (rv3.Font.ColorIndex = 1) Then
rv3.Font.ColorIndex = 27
End If
If (rv4.Font.ColorIndex = 1) Then
rv4.Font.ColorIndex = 27
End If
If (rv5.Font.ColorIndex = 1) Then
rv5.Font.ColorIndex = 27
End If
If (rgg.Font.ColorIndex = 1) Then
rgg.Font.ColorIndex = 3
rgg.Font.ColorIndex = 1
End If
If (rggg.Font.ColorIndex = 1) Then
rggg.Font.ColorIndex = 3
rggg.Font.ColorIndex = 1
End If
If (rgggg.Font.ColorIndex = 1) Then
rgggg.Font.ColorIndex = 3
rgggg.Font.ColorIndex = 1
End If
If (rggggg.Font.ColorIndex = 3) Then
rggggg.Font.ColorIndex = 1
rggggg.Font.ColorIndex = 3
End If
If (rgggggg.Font.ColorIndex = 3) Then
rgggggg.Font.ColorIndex = 1
rgggggg.Font.ColorIndex = 3
End If
End Sub
Sub okk()
Dim rg As Range
Set rg = Range("C10:C15")
If (rv1.Font.ColorIndex = 1) Then
rv1.Font.ColorIndex = 27
End If
If (rn2.Font.ColorIndex = 1) Then
rn2.Font.ColorIndex = 27
End If
If (rv3.Font.ColorIndex = 1) Then
rv3.Font.ColorIndex = 27
End If
If (rv4.Font.ColorIndex = 1) Then
rv4.Font.ColorIndex = 27
End If
If (rv5.Font.ColorIndex = 1) Then
rv5.Font.ColorIndex = 27
End If
If (rn1.Font.ColorIndex = 1) Then
rn1.Font.ColorIndex = 44
rn1.Font.ColorIndex = 1
End If
If (rg.Font.ColorIndex = 1) Then
rg.Font.ColorIndex = 3
End If
If (rgg.Font.ColorIndex = 1) Then
rgg.Font.ColorIndex = 3
End If
If (rggg.Font.ColorIndex = 1) Then
rggg.Font.ColorIndex = 3
End If
If (rgggg.Font.ColorIndex = 1) Then
rgggg.Font.ColorIndex = 3
End If
If (rggggg.Font.ColorIndex = 1) Then
rggggg.Font.ColorIndex = 3
End If
If (rgggggg.Font.ColorIndex = 1) Then
rgggggg.Font.ColorIndex = 3
End If
If (rv2.Font.ColorIndex = 1) Then
rv2.Font.ColorIndex = 44
rv2.Font.ColorIndex = 1
End If
If (rn3.Font.ColorIndex = 1) Then
rn3.Font.ColorIndex = 44
rn3.Font.ColorIndex = 1
End If
If (rn4.Font.ColorIndex = 1) Then
rn4.Font.ColorIndex = 44
rn4.Font.ColorIndex = 1
End If
rn5.Font.ColorIndex = 1
rn5.Font.ColorIndex = 44
End If
rn6.Font.ColorIndex = 1
End If
rn7.Font.ColorIndex = 1
rn7.Font.ColorIndex = 44
End If
rn8.Font.ColorIndex = 1
rn8.Font.ColorIndex = 44
End If
rn9.Font.ColorIndex = 1
rn9.Font.ColorIndex = 44
End If
End Sub
Sub okkk()
Dim rg As Range
If (rn1.Font.ColorIndex = 1) Then
rn1.Font.ColorIndex = 44
End If
If (rv2.Font.ColorIndex = 1) Then
rv2.Font.ColorIndex = 44
End If
If (rn3.Font.ColorIndex = 1) Then
rn3.Font.ColorIndex = 44
End If
If (rn4.Font.ColorIndex = 1) Then
rn4.Font.ColorIndex = 44
End If
If (rn5.Font.ColorIndex = 1) Then
rn5.Font.ColorIndex = 44
End If
If (rn6.Font.ColorIndex = 1) Then
rn6.Font.ColorIndex = 44
End If
If (rn7.Font.ColorIndex = 1) Then
rn7.Font.ColorIndex = 44
End If
If (rn8.Font.ColorIndex = 1) Then
rn8.Font.ColorIndex = 44
End If
If (rn9.Font.ColorIndex = 1) Then
rn9.Font.ColorIndex = 44
End If
If (rv1.Font.ColorIndex = 27) Then
rv1.Font.ColorIndex = 1
rv1.Font.ColorIndex = 27
End If
If (rn2.Font.ColorIndex = 1) Then
rn2.Font.ColorIndex = 27
rn2.Font.ColorIndex = 1
End If
If (rv3.Font.ColorIndex = 1) Then
rv3.Font.ColorIndex = 27
rv3.Font.ColorIndex = 1
End If
If (rv4.Font.ColorIndex = 1) Then
rv4.Font.ColorIndex = 27
rv4.Font.ColorIndex = 1
End If
rv5.Font.ColorIndex = 1
rv5.Font.ColorIndex = 27
End If
If (rg.Font.ColorIndex = 1) Then
rg.Font.ColorIndex = 3
End If
If (rgg.Font.ColorIndex = 1) Then
rgg.Font.ColorIndex = 3
End If
If (rggg.Font.ColorIndex = 1) Then
rggg.Font.ColorIndex = 3
End If
If (rgggg.Font.ColorIndex = 1) Then
rgggg.Font.ColorIndex = 3
End If
If (rggggg.Font.ColorIndex = 1) Then
rggggg.Font.ColorIndex = 3
End If
If (rgggggg.Font.ColorIndex = 1) Then
rgggggg.Font.ColorIndex = 3
End If
End Sub
Sub okkkk()
rx1.Font.ColorIndex = 1
rx1.Font.ColorIndex = 33
End If
If (rx2.Font.ColorIndex = 33) Then
rx2.Font.ColorIndex = 1
rx2.Font.ColorIndex = 33
End If
End Sub