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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
| Sub DE()
'
' DE Macro
'
'
Selection.TypeText Text:="Bonjour tout le monde,"
Selection.TypeParagraph
Selection.TypeText Text:= _
"Aujourd'hui nous allons vous présentez l'une des plus belle "
Selection.TypeText Text:="créatures"
Selection.MoveLeft Unit:=wdCharacter, Count:=10
Selection.TypeText Text:="s"
Selection.MoveUp Unit:=wdLine, Count:=1
Selection.MoveDown Unit:=wdLine, Count:=1
Selection.MoveRight Unit:=wdCharacter, Count:=11
Selection.TypeText Text:=":"
Selection.TypeParagraph
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=2, NumColumns:= _
5, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
wdAutoFitFixed
With Selection.Tables(1)
If .Style <> "Grille du tableau" Then
.Style = "Grille du tableau"
End If
.ApplyStyleHeadingRows = True
.ApplyStyleLastRow = False
.ApplyStyleFirstColumn = True
.ApplyStyleLastColumn = False
.ApplyStyleRowBands = True
.ApplyStyleColumnBands = False
End With
Selection.Shading.Texture = wdTextureNone
Selection.Shading.ForegroundPatternColor = wdColorAutomatic
Selection.Shading.BackgroundPatternColor = 49407
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.Shading.Texture = wdTextureNone
Selection.Shading.ForegroundPatternColor = wdColorAutomatic
Selection.Shading.BackgroundPatternColor = 49407
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.Shading.Texture = wdTextureNone
Selection.Shading.ForegroundPatternColor = wdColorAutomatic
Selection.Shading.BackgroundPatternColor = 49407
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.Shading.Texture = wdTextureNone
Selection.Shading.ForegroundPatternColor = wdColorAutomatic
Selection.Shading.BackgroundPatternColor = 49407
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.Shading.Texture = wdTextureNone
Selection.Shading.ForegroundPatternColor = wdColorAutomatic
Selection.Shading.BackgroundPatternColor = 49407
Selection.MoveLeft Unit:=wdCharacter, Count:=4
Selection.TypeText Text:="Terre"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeText Text:="Ciel"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeText Text:="Mer"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeText Text:="Ourage"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeText Text:="vrage"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeText Text:="Trebllement"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.MoveLeft Unit:=wdCharacter, Count:=1
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeBackspace
Selection.TypeText Text:="Catastrophe"
Selection.MoveRight Unit:=wdCharacter, Count:=8
Selection.TypeParagraph
Selection.TypeText Text:="Quel est la plus simple selon vous?"
Selection.TypeParagraph
ActiveDocument.Tables.Add Range:=Selection.Range, NumRows:=2, NumColumns:= _
3, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
wdAutoFitFixed
With Selection.Tables(1)
If .Style <> "Grille du tableau" Then
.Style = "Grille du tableau"
End If
.ApplyStyleHeadingRows = True
.ApplyStyleLastRow = False
.ApplyStyleFirstColumn = True
.ApplyStyleLastColumn = False
.ApplyStyleRowBands = True
.ApplyStyleColumnBands = False
End With
Selection.Shading.Texture = wdTextureNone
Selection.Shading.ForegroundPatternColor = wdColorAutomatic
Selection.Shading.BackgroundPatternColor = 49407
Selection.Shading.Texture = wdTextureNone
Selection.Shading.ForegroundPatternColor = wdColorAutomatic
Selection.Shading.BackgroundPatternColor = 49407
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.Shading.Texture = wdTextureNone
Selection.Shading.ForegroundPatternColor = wdColorAutomatic
Selection.Shading.BackgroundPatternColor = 49407
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.Shading.Texture = wdTextureNone
Selection.Shading.ForegroundPatternColor = wdColorAutomatic
Selection.Shading.BackgroundPatternColor = 49407
Selection.MoveLeft Unit:=wdCharacter, Count:=2
Selection.TypeText Text:="Terre"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeText Text:="Ciel"
Selection.MoveRight Unit:=wdCharacter, Count:=1
Selection.TypeText Text:="Mer"
Selection.MoveRight Unit:=wdCharacter, Count:=6
Selection.TypeParagraph
Selection.TypeText Text:="Choisissez entre 1 ,2 et 3."
Selection.TypeParagraph
End Sub |
Partager