1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| Sub chercher()
'place en haut du document
Selection.HomeKey Unit:=wdStory
'caractéristiques du signe cherché
Selection.Find.ClearFormatting
With Selection.Find
.Text = ChrW(61510)
.Forward = True
.Wrap = wdFindAsk
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
'Place en début de ligne
Selection.HomeKey Unit:=wdLine
'Sélectionne toute la ligne
Selection.EndKey Unit:=wdLine, Extend:=wdExtend
'Colle la ligne sur un nouveau document
Selection.Copy
Documents.Add Template:="Normal", NewTemplate:=False, DocumentType:=0
Selection.Paste
End Sub |
Partager