patsdavixen
New Member
- Joined
- Mar 5, 2013
- Messages
- 32
Hi,
If I have multiple workbooks open and I want to copy data from only workbook based on the sheet name to another workbook again based on the sheet name, is that possible? The workbook names are variable.
For example, if I had 5 workbooks open with file names A,B,C,D,E.
In workbook B, there is a sheet entitled "Old" and in workbook E, there is a sheet entitled "New".
Can a macro find the sheet entitled "Old" in workbook B, copy all data and find workbook E again and paste the data in the sheet entitled "New"?
Currently I have written my entire macro around the limitation that the user needs to close all excel workbooks excluding workbook B & E.
I have simply used ActiveWindow.ActivateNext to get the job done. The other limitation is that the user needs to begin the macro on the workbook entitled B.
Any suggestions will be appreciated as I really need to complete this marco soon.
Thank you.
If I have multiple workbooks open and I want to copy data from only workbook based on the sheet name to another workbook again based on the sheet name, is that possible? The workbook names are variable.
For example, if I had 5 workbooks open with file names A,B,C,D,E.
In workbook B, there is a sheet entitled "Old" and in workbook E, there is a sheet entitled "New".
Can a macro find the sheet entitled "Old" in workbook B, copy all data and find workbook E again and paste the data in the sheet entitled "New"?
Currently I have written my entire macro around the limitation that the user needs to close all excel workbooks excluding workbook B & E.
I have simply used ActiveWindow.ActivateNext to get the job done. The other limitation is that the user needs to begin the macro on the workbook entitled B.
Any suggestions will be appreciated as I really need to complete this marco soon.
Thank you.