Bonjour Jipi10 et
Une petite présentation ICI serait la bienvenue
Si vous ne l'avez pas encore fait, je vous invite à lire la charte du forum [A LIRE AVANT DE POSTER]
qui vous aidera dans vos demandes et réponses sur ce forum.
Concernant votre demande, le code me semble bon, mais je l'ai quelque peut modifié, à tester
Sub Creation_profoffre()
Dim sPath As String, sFic As String
Dim WordApp As Object
Dim WordDoc As Object
'sPath = ThisWorkbook.Path & "\" : sFic = "doc1.docx"
sPath = "C:\vba excel\" : sFic = "profoffre.docx"
Set WordApp = CreateObject("word.Application")
Set WordDoc = WordApp.Documents.Open(sPath & sFic)
WordApp.Visible = True
WordDoc.Bookmarks("signet1").Range.Text = Range("B5").Value & Chr(10)
WordDoc.Bookmarks("signet2").Range.Text = Range("B6").Value & Chr(10)
WordDoc.Bookmarks("signet3").Range.Text = Range("B7").Value & Chr(10)
WordDoc.Bookmarks("signet4").Range.Text = Range("B8").Value & Chr(10)
End Sub
Merci de votre participation
Cordialement
Voici me fichiers test