Why does Worksheet.Copy not return a reference to the new workbook created

前端 未结 4 1462
遥遥无期
遥遥无期 2020-12-19 05:53

I have some code where wb is an existing multi-worksheet workbook. If I copy one of the sheets \"Overview\" a new workbook is created - so why does the followin

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-19 06:11

    This is one of the few occasions you have to use one of the Active* objects

    wb.Sheets("Overview").Copy
    Set wbCopy = ActiveWorkbook
    

提交回复
热议问题