Merci infinément Savak; vous m'avez beaucoups aidé la dernieère fois.
Maintenant j'ai besoin de créer un tableau avec bordure et lignes
j'ai utilisé ce code:
1 2 3 4 5 6 7 8 9 10 11
| Dim oWord As Word.Application
Dim oDoc As Word.Document
Dim tbl As Word.Table
oWord = CreateObject("Word.Application")
oWord.Visible = True
oDoc = oWord.Documents.Add
tbl = oDoc.Tables.Add(oDoc.Bookmarks.Item("\endofdoc").Range, 3, 10)
tbl.Range.Font.Size = 8
tbl.Range.Font.Name = "Verdana"
tbl.Style = "table Grid 7" |
une erreur s'affiche:
L'élément dont le nom est spécifié n'existe pas.
au niveau de cette ligne:
tbl.Style = "table Grid 7"
comment je peux corriger cette erreur, c'est urgent.
Merci en avance.
Partager