Try this macro.
Option Explicit
Sub Macro1()
Dim i As Long
Dim LastRow As Long
Dim Row As Long
Dim ws As Worksheet
With Sheets("Sheet1")
LastRow = .Range("A65536").End(xlUp).Row
For i = 2 To LastRow
On Error Resume Next
Set ws = Sheets(.Range("C" & i).Text)
If Err <> 0 Then
Sheets("Template").Copy After:=Sheets(Sheets.Count)
Set ws = Sheets(Sheets.Count)
ws.Name = .Range("C" & i).Text
End If
On Error GoTo 0
Row = ws.Range("B65536").End(xlUp).Row + 1
ws.Range("B" & Row).Value = .Range("C" & i).Text
ws.Range("C" & Row).Value = .Range("B" & i).Text
ws.Range("D" & Row).Value = .Range("E" & i).Value
ws.Range("E" & Row).Value = .Range("D" & i).Text
ws.Range("F" & Row).Value = .Range("G" & i).Value
Next i
End With
End Sub