ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy & paste cells fr open worksheet then close the worksheet (https://www.excelbanter.com/excel-programming/374104-copy-paste-cells-fr-open-worksheet-then-close-worksheet.html)

Sin

Copy & paste cells fr open worksheet then close the worksheet
 
Is it possible to have some code that copy some specific cells of the active
worksheet (from one workbook), then paste the data to specific cells of
another worksheet from a closed workbook. After the process is completed,
the code will automatic close the active workbook without saving (avoid the
reminder message of saving) then open the workbook is which the data was
saved, can anyone help?

Dave Peterson

Copy & paste cells fr open worksheet then close the worksheet
 
Your code could open the second workbook.
The copy|paste the cells you want.
then save(???) the second file
then close the first workbook without saving.

If you record a macro when you do it manually, you may end up with the code you
want.

Sin wrote:

Is it possible to have some code that copy some specific cells of the active
worksheet (from one workbook), then paste the data to specific cells of
another worksheet from a closed workbook. After the process is completed,
the code will automatic close the active workbook without saving (avoid the
reminder message of saving) then open the workbook is which the data was
saved, can anyone help?


--

Dave Peterson


All times are GMT +1. The time now is 04:34 PM.

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