rnordquest
New member
- Jul 17, 2003
- 148
Macro in one xls file opens file to process using Application.FindFile. It extracts data and outputs it in a macro opened txt file. How do I switch between files? I obviously know the name of the file the macro is in and the output file but I can pick any file to process with the .Find. How do I pass the macro opened filename to the macro so I can "Workbooks("???.xls"
.Activate"?
The user might have already opened other workbooks so "Workbooks("BOOK?"
.Activate" won't work since I don't know what number the latest one used.
The user might have already opened other workbooks so "Workbooks("BOOK?"