GeneralShamu
Board Regular
- Joined
- Jul 6, 2007
- Messages
- 127
I am opening an excel file by coding up the directory and exact file name.
After I am done extracting and pasting everything into "ThisWorkbook", i.e. the workbook that has the macro to open this file, I need to close it.
I tried:
work_sheet_macro_opens.Select
ActiveWorkbook.Close
but it is not working.
Please bear in mind that given the loop structure it is not defined which workbook I will end up on (in terms of the 'active sheet/book').
Anyone have any ideas?
After I am done extracting and pasting everything into "ThisWorkbook", i.e. the workbook that has the macro to open this file, I need to close it.
I tried:
work_sheet_macro_opens.Select
ActiveWorkbook.Close
but it is not working.
Please bear in mind that given the loop structure it is not defined which workbook I will end up on (in terms of the 'active sheet/book').
Anyone have any ideas?