ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   format within a cell (https://www.excelbanter.com/excel-programming/295356-format-within-cell.html)

bob

format within a cell
 
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?

Bob Phillips[_6_]

format within a cell
 
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)

"BOB" wrote in message
...
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?




bob

format within a cell
 
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)

"BOB" wrote in

message
...
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?



.



All times are GMT +1. The time now is 09:56 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com