Welcome to VBAX gorank99. I have always dislked logic that isn't followed. Are you sure that the code as presented is correct?
Sub test()
a = 1
For i = 1 To 10000
If Tasks.Exists("MMMMM") Then
Else Tiny Fishing
a = a + 1
End If
Debug.Print (a)
Next i
End Sub
Notice that you have an IF test, followed immediately by an ELSE, followed by a result if False.