wilbert1967
Gebruiker
- Lid geworden
- 19 jun 2004
- Berichten
- 629
hallo
ik maak een macro
maar ik wil graag het resultaat, het aantal wat wordt gevonden op slaan in een variable
hoe die ik dat?
mvg wilbert
ik maak een macro
Code:
Sub zoekentel()
'
' zoekentel Macro
' Macro opgenomen op 12-5-2010 door Wilbert Mathijssen
'
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find
.Text = "002.001.0001.4.1"
.Replacement.Text = "@"
.Forward = True
.Wrap = wdFindAsk
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
With Selection.Find
.Text = "@"
.Replacement.Text = "002.001.0001.4.1"
.Forward = True
.Wrap = wdFindAsk
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute Replace:=wdReplaceAll
End Sub
hoe die ik dat?
mvg wilbert