Help me with this please its a homework
Sub MM1()
For c = 1 To 8
For r = 1 To 8
Cells(1, 1).Offset(r - 1, c - 1).Interior.ColorIndex = (r + c) Mod 2 + 1
Next r
Next c
End Sub
The answer is ok but i haven´t seen mod in my class yet. I have to use for to and it seems that the answer includes IF. Can you please help me with this, its a homework that i need to do for today
Thanks
Sub MM1()
For c = 1 To 8
For r = 1 To 8
Cells(1, 1).Offset(r - 1, c - 1).Interior.ColorIndex = (r + c) Mod 2 + 1
Next r
Next c
End Sub
The answer is ok but i haven´t seen mod in my class yet. I have to use for to and it seems that the answer includes IF. Can you please help me with this, its a homework that i need to do for today
Thanks