if len(RISQUESCABLECHALUMEAU.TextBoxPREVCHALUMEAU.Text) > 250 then with selection.find .clearformatting .Text = "Prog_cable_moyens_chalu" .Replacement.text = "" .Wrap = wdFindcontinue .execute end with with selection If .Find.found then .TypeText RISQUESCABLECHALUMEAU.TextBoxPREVCHALUMEAU.Text end If end with end If
.Replacement.Text = """" & _ RISQUESCALOOUTISPEC.TextBoxDESCOUTISPEC.Text & _ """"
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionSelection.Find.ClearFormatting With Selection.Find .Text = "Prog_cable_moyens_chalu" .Replacement.Text = """" & _ RISQUESCABLECHALUMEAU.TextBoxPREVCHALUMEAU.Text & _ """" .Forward = True .Wrap = wdFindContinue .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute With Selection If .Find.Forward = True Then .Collapse Direction:=wdCollapseStart Else .Collapse Direction:=wdCollapseEnd End If .Find.Execute Replace:=wdReplaceOne If .Find.Forward = True Then .Collapse Direction:=wdCollapseEnd Else .Collapse Direction:=wdCollapseStart End If .Find.Execute End With
.Replacement.Text = """" & _ RISQUESCABLECHALUMEAU.TextBoxPREVCHALUMEAU.Text & _ """"
With Selection.Find .Text = "Prog_cable_moyens_chalu" .Replacement.Text = """" & _ RISQUESCABLECHALUMEAU.TextBoxPREVCHALUMEAU.Text & _ """" .Forward = True .Wrap = wdFindContinue .Format = True .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With