Dear Experts,
I have a Excel/VBA problem I hope you can help. I have two excel workbooks open and visible on my task bar. I need to toggle between the two workbooks to extract data using VBA. I've tried the following:
1) Windows ("Workbook Name1.xlsm").activate
2) Workbooks("Workbook Name1.xlsm").Worksheets("Sheet1").Activate
3) Set WB = Workbook.open ("directory")
Both 1 and 2 yield "Subscript Out of Range" while 3 tried to reopen the workbook again.
What is the problem here? How come I can no longer toggle between workbooks?
Thanks for the helps in advance.
I have a Excel/VBA problem I hope you can help. I have two excel workbooks open and visible on my task bar. I need to toggle between the two workbooks to extract data using VBA. I've tried the following:
1) Windows ("Workbook Name1.xlsm").activate
2) Workbooks("Workbook Name1.xlsm").Worksheets("Sheet1").Activate
3) Set WB = Workbook.open ("directory")
Both 1 and 2 yield "Subscript Out of Range" while 3 tried to reopen the workbook again.
What is the problem here? How come I can no longer toggle between workbooks?
Thanks for the helps in advance.