Looking to see why this isn't working,
both x and y are Integers
I am really hoping this is simple, but I have this segment with nested in my code and when doing it step by step or F8 and when I run it normally its not working. Like if x = 8, it specifies y = 7 which is totally not right; and insight would be helpful - maybe I have the logic wrong I am not sure
I have a For x = 1 to worksheets.count thing going on above the code below
both x and y are Integers
I am really hoping this is simple, but I have this segment with nested in my code and when doing it step by step or F8 and when I run it normally its not working. Like if x = 8, it specifies y = 7 which is totally not right; and insight would be helpful - maybe I have the logic wrong I am not sure
I have a For x = 1 to worksheets.count thing going on above the code below
Code:
If x = 1 Then
y = 15
ElseIf x = 2 Then
y = 8
ElseIf x = 3 Or 4 Or 9 Then
y = 7
ElseIf x = 5 Or 7 Or 8 Or 10 Then
y = 3
ElseIf x = 8 Then
y = 12
End If