1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| Sub SuppPara()
'Déclaration des variables
Dim intPage As Integer, inti As Integer
'affectation du nombre de pages
intPage = ActiveDocument.BuiltInDocumentProperties(wdPropertyPages)
'Boucle sur les pages depuis la fin du document
For inti = intPage To 1 Step -1
Debug.Print inti
'Déplacement et sélection des deux premiers paragraphes de chaque page
Selection.GoTo what:=wdGoToPage, Count:=inti
Selection.MoveDown unit:=wdParagraph, Count:=2, Extend:=wdExtend
'Suppression des deux premiers paragraphes
Selection.Delete
Next inti
End Sub |
Partager