Posté(e) 7 juillet 201214 a Auteur Si quelqu'un sait lire le langage informatique, il y a une erreur dans ma macro (qui concerne le son ou et on) car quand j'applique la macro les sons ou et on ne sont modifiés qu'une seule fois. Sub essai1000() ' ' essai1000 Macro ' Macro enregistrée le 07/07/2012 par acl ' Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "on" .Replacement.Text = "on" .Forward = True .Wrap = wdFindAsk .Format = True Selection.Find.Execute Selection.Shading.Texture = wdTextureNone Selection.Shading.ForegroundPatternColor = wdColorAutomatic Selection.Shading.BackgroundPatternColor = wdColorBrown .Text = "ou" .Replacement.Text = "ou" .Forward = True .Wrap = wdFindAsk .Format = True Selection.Find.Execute Selection.Shading.Texture = wdTextureNone Selection.Shading.ForegroundPatternColor = wdColorAutomatic Selection.Shading.BackgroundPatternColor = wdColorRed End With Selection.Find.Execute Replace:=wdReplaceAll Selection.Find.ClearFormatting Selection.Shading.ForegroundPatternColor = wdColorAutomatic End Sub
Posté(e) 7 juillet 201214 a sans doute en insérant une boucle dans ta macro : http://www.vbfrance.com/forum/sujet-FAIRE-BOUCLE-TRAITER-TOUT-DOCUMENT-MACRO-WORD_1382806.aspx
Posté(e) 8 juillet 201214 a Auteur MERCI Moustache !!!!! Ça fonctionne. Maintenant, il faut trouver une solutions pour toutes les irrégularités (ba-na-ne est différent de ban-an -e) Décidément, ce forum est fabuleux !!!
Créer un compte ou se connecter pour commenter