ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copying sheets to a new workbook (https://www.excelbanter.com/excel-programming/363161-copying-sheets-new-workbook.html)

kev_06[_2_]

Copying sheets to a new workbook
 

How can I copy multiple sheets to the same workbook through VBA?


--
kev_06
------------------------------------------------------------------------
kev_06's Profile: http://www.excelforum.com/member.php...o&userid=35046
View this thread: http://www.excelforum.com/showthread...hreadid=548001


Chip Pearson

Copying sheets to a new workbook
 
Try

Sheets(Array("Sheet1", "Sheet3")).Copy
after:=Sheets(Sheets.Count)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"kev_06"
wrote in message
...

How can I copy multiple sheets to the same workbook through
VBA?


--
kev_06
------------------------------------------------------------------------
kev_06's Profile:
http://www.excelforum.com/member.php...o&userid=35046
View this thread:
http://www.excelforum.com/showthread...hreadid=548001




Chip Pearson

Copying sheets to a new workbook
 
The code got line-wrapped in the post. It should all be on one
line in VBA.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Chip Pearson" wrote in message
...
Try

Sheets(Array("Sheet1", "Sheet3")).Copy
after:=Sheets(Sheets.Count)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"kev_06"
wrote in message
...

How can I copy multiple sheets to the same workbook through
VBA?


--
kev_06
------------------------------------------------------------------------
kev_06's Profile:
http://www.excelforum.com/member.php...o&userid=35046
View this thread:
http://www.excelforum.com/showthread...hreadid=548001







All times are GMT +1. The time now is 11:03 AM.

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