ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Does Workbook need to be open to copy to..from vba (https://www.excelbanter.com/excel-programming/318774-does-workbook-need-open-copy-vba.html)

Dale[_15_]

Does Workbook need to be open to copy to..from vba
 
I recieve monthly financial summaries by dept in one workbook where each tab
is a dept. I want to distribute to each department by copying each
worksheet to an existing workbook that has been created for that dept...at
the end of the year there will be 12 tabs/wkbook each named by month. Does
the "destination" workbook have to be open or can I copy a worksheet to it
by vba...I see examples of getting code to a closed workbook, but not
sending to a closed workbook.

TIA
Excel 2000



Dale[_15_]

Does Workbook need to be open to copy to..from vba
 
Darn..that should have said, I've seen code examples of getting data FROM a
closed workbook, but not SENDING a worksheet to a closed workbook


"Dale" wrote in message
...
I recieve monthly financial summaries by dept in one workbook where each
tab is a dept. I want to distribute to each department by copying each
worksheet to an existing workbook that has been created for that dept...at
the end of the year there will be 12 tabs/wkbook each named by month. Does
the "destination" workbook have to be open or can I copy a worksheet to it
by vba...I see examples of getting code to a closed workbook, but not
sending to a closed workbook.

TIA
Excel 2000





All times are GMT +1. The time now is 08:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com