Hi,
I have a set of files in a folder that i open for processing, also at the same time for each workbook opened from the folder, i need to write into another workbook, save and then cotinue processing the book i had opened from the folder. I have been able to it until writing it into the new workbook, but when i try to activate the one opened initially, i get an error msg "Subscript out of range", Run-time error - 9, am familiar with this error, but am not sure why it is showing up now.
code just before error:
Activeworkbook.save
Workbooks(sheetName).activate
SheetName has been passed from another module, also declared asa public.
Thanks in advance,
Bhanu
I have a set of files in a folder that i open for processing, also at the same time for each workbook opened from the folder, i need to write into another workbook, save and then cotinue processing the book i had opened from the folder. I have been able to it until writing it into the new workbook, but when i try to activate the one opened initially, i get an error msg "Subscript out of range", Run-time error - 9, am familiar with this error, but am not sure why it is showing up now.
code just before error:
Activeworkbook.save
Workbooks(sheetName).activate
SheetName has been passed from another module, also declared asa public.
Thanks in advance,
Bhanu