Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Nested For Next
Hello
If i have nested For...Next statements, for example For j = 26 To 30 For k = 11 To 15 For l = 1 To 5 'Code inserted here Next l Next k Next j Does the first pass set j=26, k=11, l=1 and the second pass set j=26, k=11, l=2 How could i make it so that j,k,l all increment by 1 during the scond pass through the code? For example, The first pass set j=26, k=11, l=1 and the second pass set j=27, k=12, l=2 Best Regards |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Nested For Next
Managed to resolve this one, i'll post my method for anyone who may find it
useful. j = 26 k = 11 l = 1 For z = 1 To 5 'Code j = j + 1 k = k + 1 l = l + 1 Next z "Owen" wrote: Hello If i have nested For...Next statements, for example For j = 26 To 30 For k = 11 To 15 For l = 1 To 5 'Code inserted here Next l Next k Next j Does the first pass set j=26, k=11, l=1 and the second pass set j=26, k=11, l=2 How could i make it so that j,k,l all increment by 1 during the scond pass through the code? For example, The first pass set j=26, k=11, l=1 and the second pass set j=27, k=12, l=2 Best Regards |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help! Nested If | Tables | |||
Help with Nested Fields | Microsoft Word Help | |||
Help! Nested IF | Microsoft Word Help | |||
nested if then else | Microsoft Word Help | |||
Nested If | Mailmerge |