format within a cell

  • Thread starter Thread starter BOB
  • Start date Start date
B

BOB

Some cells contains "/" (ie: Ford / Toyota)
I would like to have all the text after the slash in bold.

Is there a code to bold a variable size text after the
slash?
 
Hi Bob,

Try something like

With ActiveCell
iPos = InStr(1, .Value, "/")
.Characters(iPos + 1, 99).Font.Bold = True
End With

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 
Fantastic!!!

Thanks
-----Original Message-----
Hi Bob,

Try something like

With ActiveCell
iPos = InStr(1, .Value, "/")
.Characters(iPos + 1, 99).Font.Bold = True
End With

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)




.
 

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

Back
Top