Hi Sebastian
Here is a macro solution to your problem.
I choose an Invoice template as a sample file for this solution
Please, try the following
- Select a cell in your Template and create a Data Validation dropdown list with just one value, "New Template"
Here we used cell A1
- Right-click on the sheet tab/ Click View Code, to lead you to the VBA panel
- Select/DoubleClick the Template sheet to open the Worksheet Change Event Panel. Then paste the following VBA code, as indicated in the picture below.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Application.Intersect(Target, **Range("A1")**) Is Nothing Then
If Target.Value = "New Sheet" Then
Application.ScreenUpdating = False
ActiveSheet.Copy After:=Sheets(Sheets.Count)
With ActiveSheet
.Range("**A15:D15**").Value = ""
.Range("**A18:C36**").Value = ""
.Range("**C9:C12**").Value = ""
.Range("**A1**").Value = "" ''' Resets the dropdown to nothing/blank
End With
Application.ScreenUpdating = True
End If
End If
End Sub
- Save the workbook as a Macro Enable Excel File or Macro Enable Template
Important note:
This part of the code resets (clears) the values in the cells or range of cells you use to complete the form.
.Range("A15:D15").Value = ""
.Range("A18:C36").Value = ""
.Range("C9:C12").Value = ""
Similarly with the Dropdown cell
.Range("A1").Value = "" ''' Resets the dropdown, clears it/blank
Please, adapt/change the ranges according to your real scenario.
In this sample file, it clears these ranges
The macro will work upon selection of "New Sheet" in the dropdown
RESULTS:
Do let me know if you need more help
Regards
Jeovany