Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Even though the below code can't duplicate sheetname after the first 5 j
loops, Why when I step through the code after the 5th time through the j Does it go back to For j (and when I hold the mouse over j it shows 6 And want to run lines 4 and 5 a sixth time? Confused with Nested looping here.. Sub AddSheets() For i = 1 To 52 For j = 1 To 5 Sheets.Add After:=Worksheets(Worksheets.Count) ActiveSheet.Name = Format(Weekday(j + 1), "dddd") Next j Next i End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Nested loop | Excel Worksheet Functions | |||
Nested Loop Link | Excel Worksheet Functions | |||
nested if loop with logical OR/AND | Excel Programming | |||
Nested loop order? | Excel Programming | |||
Nested Loop | Excel Programming |