jim may
Well-known Member
- Joined
- Jul 4, 2004
- Messages
- 7,486
I'm getting RT 9 on the RED row below (not the first time thru the loop, but the 2nd time thru) -- a likely reason which at the moment -- I don't know..
Rich (BB code):
Sub tester2()
Dim Arr()
Dim i As Long, j As Long
i = 1
j = 1
For Each nm In ActiveWorkbook.Names
ReDim Preserve Arr(1 To i, 1 To 2)
Arr(i, j) = nm.Name
Arr(i, 2) = nm
i = i + 1
Next nm
Workbooks.Add
For i = 1 To UBound(Arr, 1)
For j = 1 To 2
......