Bonjour,
J'ai installé des macros de mon ancien ordinateur (windows xp -word 2003) sur le nouveau Window 7 - word 2010, mais cela ne fonctionne pas. Les macros Souligné, Intergras, restent bloqués et word 2010 est obligé de redémarrer. Ci-joint ces macros.
Je suis une grande novice en matière d'informatique.
Merci d'avance de votre aide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 Sub Souligne() ' ' souligné Macro ' Macro enregistrée le 24/07/12 ' Selection.Find.ClearFormatting With Selection.Find .Text = ".-" .Forward = True .Wrap = wdFindStop .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute While Selection.Find.Found() Selection.MoveLeft Unit:=wdCharacter, Count:=1 Selection.Extend Selection.HomeKey Unit:=wdLine, Extend:=wdExtend With Selection.Font .Bold = True End With With Selection.Font .Underline = True End With Selection.MoveRight Unit:=wdCharacter, Count:=2 Selection.Find.ClearFormatting With Selection.Find .Text = ".-" .Forward = True .Wrap = wdFindStop .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Wend End Sub Sub InterGras() ' ' InterGras Macro ' Macro enregistrée le 14/10/02 ' Selection.Find.ClearFormatting With Selection.Find .Text = ".-" .Forward = True .Wrap = wdFindStop .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute While Selection.Find.Found() Selection.MoveLeft Unit:=wdCharacter, Count:=1 Selection.Extend Selection.HomeKey Unit:=wdLine, Extend:=wdExtend With Selection.Font .Bold = True End With Selection.MoveRight Unit:=wdCharacter, Count:=2 Selection.Find.ClearFormatting With Selection.Find .Text = ".-" .Forward = True .Wrap = wdFindStop .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Wend End Sub
Partager