ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copying sheet to another workbook using VBA... (https://www.excelbanter.com/excel-programming/308260-copying-sheet-another-workbook-using-vba.html)

Trevor[_4_]

Copying sheet to another workbook using VBA...
 
Hello All,

I have a macro that executes some functions and I want to,
at the end, save the current sheet as a sheet on another
existing workbook. Can someone help with this? I would
appreciate it.

Trevor

Norman Jones

Copying sheet to another workbook using VBA...
 
Hi Trevor,

Try something like:

ActiveSheet.Copy After:= _
Workbooks("OtherWorkbook.xls").Sheets("Sheet2")


---
Regards,
Norman



"Trevor" wrote in message
...
Hello All,

I have a macro that executes some functions and I want to,
at the end, save the current sheet as a sheet on another
existing workbook. Can someone help with this? I would
appreciate it.

Trevor





All times are GMT +1. The time now is 05:45 PM.

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