Sub DocWord_bis()
Dim WordApp As Word.Application, DocWord As Word.Document, Modele As String
Dim Chemin$, Fichie$, nf$
Modele = "D:\Genealogie\Extraits\Entete.docx"
Chemin = Feuil1.[B10].Value2
Fichier = Feuil1.[B12].Value2
Set WordApp = CreateObject("word.Application")
WordApp.Visible = True
Set DocWord = WordApp.Documents.Add(Template:=Modele, DocumentType:=0)
nf = Application.GetOpenFilename("Fichier JPG (*.jpg), *.jpg")
If nf <> "" And Right(nf, 3) = "jpg" Then
DocWord.InlineShapes.AddPicture nf
End If
DocWord.SaveAs2 Chemin & "\" & Fichier & ".docx"
DocWord.Close wdDoNotSaveChanges
WordApp.Quit
End Sub