ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   move a sheet to another workbook (https://www.excelbanter.com/excel-discussion-misc-queries/178441-move-sheet-another-workbook.html)

phil-rge-ee

move a sheet to another workbook
 
I need to move a sheet from one workbook to another workbook. I'd like to
create a button that uses a macro or vb script to accomplish this. I can
create the move macro, but the catch is that the sheet that needs to move
will have a different name every month. So I was thinking of the code popping
up a form that I could type the sheet name in that needs to be moved and it
will then move it. I'm familar with forms, text boxes, and basic VB, but need
some help with the code here. Thanks for any help you can provide.

Jim Cone

move a sheet to another workbook
 

Right -clicking the sheet tab and choosing "move or copy" does that already.
If you must use a macro it sounds as if "ActiveSheet" is what you need..
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware
(Excel Add-ins / Excel Programming)



"phil-rge-ee" <
wrote in message
I need to move a sheet from one workbook to another workbook. I'd like to
create a button that uses a macro or vb script to accomplish this. I can
create the move macro, but the catch is that the sheet that needs to move
will have a different name every month. So I was thinking of the code popping
up a form that I could type the sheet name in that needs to be moved and it
will then move it. I'm familar with forms, text boxes, and basic VB, but need
some help with the code here. Thanks for any help you can provide.


All times are GMT +1. The time now is 12:27 AM.

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