Sub Word()
Dim Wapp As Object, Wdoc As Object, c As Object, ns&, n&
On Error Resume Next
Set Wapp = GetObject(, "Word.Application")
If Wapp Is Nothing Then Set Wapp = CreateObject("Word.Application")
Wapp.Visible = True
Set Wdoc = Wapp.Documents.Open(ThisWorkbook.Path & "\Charlie doc type.docx")
For Each c In Wdoc.ContentControls
c.Range.Text = Format(Application.VLookup(c.Title, Range("A2:B4"), 2, 0), "dd/mm/yyyy")
Next
For ns = 1 To Wdoc.Sections.Count
For Each c In Wdoc.Sections(ns).Footers(1).Range.ContentControls
c.Range.Text = Format(Application.VLookup(c.Title, Range("A2:B4"), 2, 0), "dd/mm/yyyy")
Next c, ns
Err = 0
Wdoc.SaveAs ThisWorkbook.Path & "\" & Range("B2") & " " & Format(Range("B4"), "dd mm yyyy") & ".docx"
If Err = 0 Then
For n = Wdoc.ContentControls.Count To 1 Step -1
Wdoc.ContentControls(n).Delete
Next
For ns = 1 To Wdoc.Sections.Count
For n = Wdoc.Sections(ns).Footers(1).Range.ContentControls.Count To 1 Step -1
Wdoc.Sections(ns).Footers(1).Range.ContentControls(n).Delete
Next n, ns
End If
AppActivate Wapp.Caption
End Sub