WordApp.Selection.GoTo What:=wdGoToBookmark, Name:="Insertion_Tableaux_Test"
'Insertion titre dans Word
If Sheets("Export_tableaux").Cells(1, colonne_decale + 1).Value <> "" Then
WordApp.Selection.TypeText text:=Sheets("Export_tableaux").Cells(1, colonne_decale + 1).Value
WordApp.Selection.Style = ActiveDocument.Styles("Titre 1")
WordApp.Selection.TypeParagraph
End If
If Sheets("Export_tableaux").Cells(1, colonne_decale + 2).Value <> "" Then
WordApp.Selection.TypeText text:=Sheets("Export_tableaux").Cells(1, colonne_decale + 2).Value
WordApp.Selection.Style = ActiveDocument.Styles("Titre 2")
WordApp.Selection.TypeParagraph
End If
If Sheets("Export_tableaux").Cells(1, colonne_decale + 3).Value <> "" Then
WordApp.Selection.TypeText text:=Sheets("Export_tableaux").Cells(1, colonne_decale + 3).Value
WordApp.Selection.Style = ActiveDocument.Styles("Titre 3")
WordApp.Selection.TypeParagraph
End If
If Sheets("Export_tableaux").Cells(1, colonne_decale + 4).Value <> "" Then
WordApp.Selection.TypeText text:=Sheets("Export_tableaux").Cells(1, colonne_decale + 4).Value
WordApp.Selection.Style = ActiveDocument.Styles("Titre 4")
WordApp.Selection.TypeParagraph
End If
'Coller le tableau dans Word
WordApp.Selection.PasteSpecial
WordApp.Selection.InsertBreak Type:=wdPageBreak