nniedzielski
Well-known Member
- Joined
- Jan 8, 2016
- Messages
- 598
- Office Version
- 2019
- Platform
- Windows
I seem to have stuck myself into an endless loop, and i cannot seem to figure out where or why this is happening.
VBA Code:
For i = 1 To UBound(Items, 1)
x = 2
For Each Item In ArrayDictionaryofItems.keys
Sheets("Data").UsedRange.AutoFilter field:=10, Criteria1:=Item
Sheets.Add(Before:=Sheets(1)).Name = Item
Sheets("Data").Select
Range("A1" & ":" & "Y" & erow).SpecialCells(xlCellTypeVisible).Copy
Sheets(Item).Range("A1" & ":" & "Y1").PasteSpecial Paste:=xlPasteAll
Application.CutCopyMode = False
x = x + 1
Next Item
Next i