Stupid question: This code isn't compiling correctly, and I can't find a solution on any of the other "Next without For" questions. I have a feeling I'm just missing something stupid. Here's the relevant code:
For Each Cell In CHWAssigned
If Cell = "" Then
If Cell.Row Mod 3 = 0 Then
Cell.Value = "DM"
ElseIf Cell.Row Mod 3 = 1 Then
Cell.Value = "CWS"
ElseIf Cell.Row Mod 3 = 2 Then
Cell.Value = "CF"
Else
End If
Next Cell
I think I've closed all of the If statements, but there must be one in there that's open. Thanks for taking the time to address something so simple.
ElseIf, control falls to anElsewhich is within a parentIfblock.