text of different colours in a single textbox

  • Thread starter Thread starter Adrian
  • Start date Start date
A

Adrian

Hi,

Is there a way to display text of different colours in a single textbox
? Thanks...
 
Hi,

With a Text Box from the Drawing toolbar you can adapt the following

Sub Test()
ActiveSheet.Shapes("Text Box 3").Select
Selection.Characters.Text = "Good Morning it's Thursday"
With Selection
.Characters(1, 4).Font.ColorIndex = 3
.Characters(5, 12).Font.ColorIndex = 4
End With
End Sub

Regards,
Don
 

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