For i = 1 to x
If i = 1 do something
If i = x do something else
if i is between 1 and x do something else entirely
Next i
My problem is in the If i is between 1 and x statement. All my i's are entering this if every time and it's recalculating w(1) and w(x).
The code I currently have that doesn't work is:
If 1 < i < x Then
If i = 1 do something
If i = x do something else
if i is between 1 and x do something else entirely
Next i
My problem is in the If i is between 1 and x statement. All my i's are entering this if every time and it's recalculating w(1) and w(x).
The code I currently have that doesn't work is:
If 1 < i < x Then