AK_Excel_13
New Member
- Joined
- Jul 11, 2014
- Messages
- 30
Why doesn't my else if statement work? I seems like it should work. The error I keep getting is "Else without If"
Application.ScreenUpdating = False
Set x = ActiveCell
Count = Range("a65536").End(xlUp).Row
For e = 2 To Count
If Cells(e, 10).Value = "A" Then Cells(e, 10).Value = "Yes"
Else: If Cells(e, 10).Value = "B" Then Cells(e, 10).Value = "No"
End If
End If
Next e
x.Select
Application.ScreenUpdating = True
Application.ScreenUpdating = False
Set x = ActiveCell
Count = Range("a65536").End(xlUp).Row
For e = 2 To Count
If Cells(e, 10).Value = "A" Then Cells(e, 10).Value = "Yes"
Else: If Cells(e, 10).Value = "B" Then Cells(e, 10).Value = "No"
End If
End If
Next e
x.Select
Application.ScreenUpdating = True