Private Sub Workbook_NewSheet(ByVal Sh As Object)
Dim ws As Worksheet
Worksheets("Main").Cells(1, 2) = Worksheets.Count - 1
Set ws = Sh
ws.Cells(1, 1) = Worksheets("Main").Cells(1, 2)
End Sub
If i wanted the same functionality but when I copy a sheet instead of creating a new sheet ?It seems that there is no event for copy worksheet, I got to do a more deeper research if this is available or is there an alternative way to detect that.
Open in new window