TheShaunMichael
Board Regular
- Joined
- Oct 24, 2009
- Messages
- 57
Have a large If, ElseIf statement. This goes 3 layers deep. The problem is, the "End If" portion of the 3rd layer is exiting the entire loop rather than just the local function.
Here's a snippit. At the end of the "If Counter > 1 Then" segment is the problem. I've tried embedding the If Counter segment in the "For Y = 26 to 29" section but I have the same problem.
ElseIf Worksheets(X).Cells(27, 13) = "" Then
Counter = 0
For Y = 26 To 29
If Worksheets(X).Cells(Y, 13) = "" Then
Counter = Counter + 1
End If
Next
If Counter > 1 Then
Worksheets(X).Cells(27, 13) = Me.tbMeetingDate
End If
Here's a snippit. At the end of the "If Counter > 1 Then" segment is the problem. I've tried embedding the If Counter segment in the "For Y = 26 to 29" section but I have the same problem.
ElseIf Worksheets(X).Cells(27, 13) = "" Then
Counter = 0
For Y = 26 To 29
If Worksheets(X).Cells(Y, 13) = "" Then
Counter = Counter + 1
End If
Next
If Counter > 1 Then
Worksheets(X).Cells(27, 13) = Me.tbMeetingDate
End If