Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

How select text with specific font

 
Post new topic   Reply to topic    Computer Forum Forum Index -> word vba customization
View previous topic :: View next topic  
Author Message
Huub
Guest





PostPosted: Mon May 07, 2007 10:10 pm    Post subject: How select text with specific font Reply with quote

I'd like to find the text formated in a specific font
Through the menu edit/find you can select the font and press search
(without typing text)

how it can be done in vba ?
- there is selection.find.format = true, but where to specify the font?

Huub
Back to top
Google
Sponsor





PostPosted: Mon May 07, 2007 10:10 pm    Post subject: Advertisement

Back to top
Jean-Guy Marcil
Guest





PostPosted: Mon May 07, 2007 10:15 pm    Post subject: Re: How select text with specific font Reply with quote

Huub was telling us:
Huub nous racontait que :

Quote:
I'd like to find the text formated in a specific font
Through the menu edit/find you can select the font and press search
(without typing text)

how it can be done in vba ?
- there is selection.find.format = true, but where to specify the
font?

Like this:

With Selection.Find
.Text = ""
.Font.Name = "Arial"
.Execute
End With



--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> word vba customization All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum