Hi!
I've mant to make a makro that shall search for all the words with the font "Arial" and "Arial Black". To do this I have to use the find-object. So far I've got it to work with one font, but I havent got it to work with two fonts.
Here is my code so far:
If I apply
under
in the code, it will still only search for one of the fonts (the last one that is mentioned)
Can anyone help me with this problem?
-If this isn't possible, is there any possibility to search for text that is not black in the find object? The text I want to find is coloured in different colours, but not black....you see?
Thanx!
Pål
Pål Nesteby
PDC-Tangen
Norway
I've mant to make a makro that shall search for all the words with the font "Arial" and "Arial Black". To do this I have to use the find-object. So far I've got it to work with one font, but I havent got it to work with two fonts.
Here is my code so far:
Code:
Dim tjRange As Range
Set tjRange = Selection.Range
tjRange.Find.ClearFormatting
With tjRange.Find
.Text = ""
.Replacement.Text = ""
.Forward = False
.Wrap = wdFindStop
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Font.Name = "Arial Black"
End With
tjRange.Find.Execute
Code:
.Font.Name = "Arial"
Code:
.Font.Name = "Arial Black"
Can anyone help me with this problem?
-If this isn't possible, is there any possibility to search for text that is not black in the find object? The text I want to find is coloured in different colours, but not black....you see?
Thanx!
Pål
Pål Nesteby
PDC-Tangen
Norway