J
Jan Nademlejnsky
I want to create a loop which would open File "TestA.xls", process it, close
it then open "TestB.xls", process it and so on.
Example:
Sub Test()
L= 65 ' Char (L) = Char(65) = "A" '-------< does not work. I need
something similar
For L to L + 5 '5 loops
X = Char(L)
File = "Test" & X & ".xls" '--------TestA.xls, TestB.xls....
Workbooks.Open FileName:=ThisWorkbook.Path & File
Process_It
ActiveWorkbook.Save
ActiveWindow.Close
NEXT
End Sub
________________
Sub Process_It()
-
-
End Sub
Appreciate your help
Jan
it then open "TestB.xls", process it and so on.
Example:
Sub Test()
L= 65 ' Char (L) = Char(65) = "A" '-------< does not work. I need
something similar
For L to L + 5 '5 loops
X = Char(L)
File = "Test" & X & ".xls" '--------TestA.xls, TestB.xls....
Workbooks.Open FileName:=ThisWorkbook.Path & File
Process_It
ActiveWorkbook.Save
ActiveWindow.Close
NEXT
End Sub
________________
Sub Process_It()
-
-
End Sub
Appreciate your help
Jan