Hi folks
Does anybody know how to make your code dynamically create its own 'For' and 'If' statements?
I need my code to create a 'For' statement followed by an 'If' statement whenever the 'If' statement is satisfied.
eg
For a = 1 To 10
If Variable1 = 3 Then
(Create new....For b = 1 To 10
If Variable2= 3 then..............)
The reason I need this is because sometimes the conditions in my code will mean that I need many 'For' and 'If' statements within each other and sometimes I will only need one.
Am I walking into a brick wall here?
Regards
Adam