For example, I have the formula:
=i_currency&TEXT(+$C$13/landarea,"#,###.##")&"/"&landunit,"")
How can I bold or italicize part of the text string?
thanks
George
--
Rick (MVP - Excel)
"mopgcw" <mop...@discussions.microsoft.com> wrote in message
news:52471F62-C823-40A1...@microsoft.com...
"mopgcw" <mop...@discussions.microsoft.com> wrote in message
news:EF44314B-728D-47CF...@microsoft.com...
Sub Test()
Dim R As Range
Dim Word As String
Dim Position As Long
Set R = Range("A1")
' Clear any exiting font formatting
R.Characters.Font.Bold = False
R.Characters.Font.ColorIndex = xlAutomatic
' Make a word bold
Word = "Bold"
Position = InStr(1, R.Value, Word, vbTextCompare)
R.Characters(Position, Len(Word)).Font.Bold = True
' Make the color of a word red
Word = "red"
Position = InStr(1, R.Value, Word, vbTextCompare)
R.Characters(Position, Len(Word)).Font.ColorIndex = 3
End Sub
--
Rick (MVP - Excel)
"David Biddulph" <groups [at] biddulph.org.uk> wrote in message
news:x4idnZrrTfeMxUTV...@bt.com...
THANKS, this was VERY helpful.
That's why this is such a great forum.
Take care,
George