Changing style of first word in a range, most efficient way please

M

Mike

Hi! I need to bold,italize and change font for every first word withing
several ranges programmatically.

Here's what I am doing:

oPara1.Range.Font.Name = "Arial";
oPara1.Range.Font.Size = 20;
oPara1.Range.Font.Bold = 0;
oPara1.Range.Text = "SOME STRING";

But in reliality, I just want to change "SOME" to be bold and italized and
"Arial" while leaving " STRING" as Helvetica.

What can I do ?

Many Thanks in Advance,

--Michael
 
J

Jezebel

Using Arial and Helvetica in the same document -- let alone in the same
line -- is a typographic obscenity. What are you really trying to do?
 
M

Mike

Hi! Now somebody will think my question got an answer since there are 3 posts
already :-(. In any case, the fonts provided were for to illustrate
the problem. The user will decide which fonts the first word will belong to.

Many Thanks,

--Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top