Copy sheet and get resulting sheet object?

后端 未结 13 2165
醉梦人生
醉梦人生 2020-11-28 12:21

Is there any easy/short way to get the worksheet object of the new sheet you get when you copy a worksheet?

ActiveWorkbook.Sheets(\         


        
13条回答
  •  星月不相逢
    2020-11-28 12:56

    UPDATE:

    Dim ThisSheet As Worksheet
    Dim NewSheet As Worksheet
    Set ThisSheet = ActiveWorkbook.Sheets("Sheet1")
    ThisSheet.Copy
    Set NewSheet = Application.ActiveSheet
    

提交回复
热议问题