How to copy sheets to another workbook using vba?

后端 未结 10 1845
故里飘歌
故里飘歌 2020-11-27 17:52

So, what I want to do, generally, is make a copy of a workbook. However, the source workbook is running my macros, and I want it to make an identical copy of itself, but wit

10条回答
  •  清酒与你
    2020-11-27 18:21

    You can simply write

    Worksheets.Copy
    

    in lieu of running a cycle. By default the worksheet collection is reproduced in a new workbook.

    It is proven to function in 2010 version of XL.

提交回复
热议问题