ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Copy Worksheet without VB code attached? (https://www.excelbanter.com/excel-programming/302321-copy-worksheet-without-vbulletin-code-attached.html)

Chris McFarland

Copy Worksheet without VB code attached?
 
Is there anyway to copy a worksheet (with VB code) to a
new workbook without the VB code automatically getting
attached to the copied sheet?

My current code looks like this:
Workbooks(WSNameC).Sheets(aa$).Copy after:=Workbooks
(WSName1).Sheets(aa1$)

Thanks for the advice. This forum is really helpful.

Chris.


All times are GMT +1. The time now is 11:59 PM.

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