Open File --- macro stops
Posted by Zevi on May 01, 2001 9:34 PM
I have several files I wanted to do the same macro that I've made. The macro is saved in a seperate file. It works fine if I open the file manualy first then run the macro afterwards.
1. I wanted the macro to open the file automatically and run the rest of the macro. Everytime the macro open the file then it stops. If I debug with F8 it seems OK though (not stop). This is the macro:
ChDir "Mydir"
Workbooks.Open "filename1"
Windows(filename1).Activate
For i = 1 To 33
Sheets(i).Select
....Solver program here
2. I have "filename1" to "filename20" to repeat, how do I program the macro to do that?
Thanks in advance.
Zevi