Newbie here, I have a template sheet with a table containing formulas.At the end I want to press a button to create and copy-paste values from template sheet to the new sheet so here is what i got:
Sub CreateSheet() Dim xName As String Dim xSht As Object Dim xNWS As Worksheet On Error Resume Next xName = Application.InputBox("Please enter a name for this new sheet ", "New Sheet") If xName = "" Then Exit Sub Set xSht = Sheets(xName) If Not xSht Is Nothing Then MsgBox "Sheet cannot be created as there is already a worksheet with the same name in this workbook" Exit Sub End If ActiveSheet.Copy after:=Sheets(Sheets.Count) Set xNWS = Sheets(Sheets.Count) xNWS.Name = xName End Sub Problem is I just want to Paste Values without any formulas from template sheet
Thanks