Insert text in bold

  • Thread starter Thread starter rocket0612
  • Start date Start date
R

rocket0612

I am trying to insert bold text to word 97 using a macro from excel:

Wrd.ActiveDocument.Fields(10).Select
With Wrd.Selection
..Font.Bold = wdToggle
..InsertAfter Text:="HOW TO CONTACT US"
'.Font.Bold = wdToggle
End With

However, the text when inserted is not being bolded, any suggestions?
 
Rocket,

Don't toggle the bold (it can lead to confusion) - set it to true for the
selection after inserting the text (and don't miss out the leading
full-stops/periods) - e.g.

With Selection
.InsertAfter Text:="HOW TO CONTACT US"
.Font.Bold = True
End With

HTH

Tim
 

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