I have a template sheet that I need to copy 1 button on the template sheet to the new sheet. I am using the following code to copy the sheet; can someone assist with the code need to copy the button (Button 2) as well in this code?
Code:
Sub Duplicate_Sheet() Dim wsName As Variant
With ThisWorkbook
.Worksheets("BOM Template").Copy After:=.Worksheets("BOM Template")
End With
wsName = InputBox("Enter Part #" & vbCrLf & "Example: SagePart# (Drawing #)", "New sheet")
If wsName <> "" Then
With ActiveSheet
.Name = wsName
.Visible = True
ActiveSheet.[C4] = ActiveSheet.Name
End With
End If
With Range("F5")
.Value = Date
.NumberFormat = "mm-dd-yy"
End With
End Sub