Can someone help me set this up???
I want to Dim an array, 1, 2, 3, 4, 5 ... for our example here.
And I want the macro to loop thro using 1, 2, 3, 4, and 5 as items in the loop each time.
for the example, create the array that loops.
The first iteration will be...
'Open file
Application.Workbooks.Open "C:\1.xls"
Windows("1.xls").Activate
'Then search on the open book for the file name (1 on this iteration)
Cells.Find(What:="1", After:=ActiveCell, LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Select
'Now loop, 2, 3, 4, and 5
That's it. I'm just horrible with variables, but I'm externally grateful to the knowledgable gent who solves this!
Thanks!
MK
I want to Dim an array, 1, 2, 3, 4, 5 ... for our example here.
And I want the macro to loop thro using 1, 2, 3, 4, and 5 as items in the loop each time.
for the example, create the array that loops.
The first iteration will be...
'Open file
Application.Workbooks.Open "C:\1.xls"
Windows("1.xls").Activate
'Then search on the open book for the file name (1 on this iteration)
Cells.Find(What:="1", After:=ActiveCell, LookIn:=xlValues, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Select
'Now loop, 2, 3, 4, and 5
That's it. I'm just horrible with variables, but I'm externally grateful to the knowledgable gent who solves this!
Thanks!
MK