98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Script text in Bold
Script text in Bold
Resolved · Low Priority · Version 2016
Vicki has attended:
Excel VBA Introduction course
Script text in Bold
Hi, does anyone know how I might write script to insert text which is bold?
I want to say if this button is true typetext "blah blah blah" but I want the blah's in Bold
thanks so much
RE: Script text in Bold
Hi Vicki,
Thank you for the forum question.
Try something like:
If Me.OptionButton1 = True Then
Wdoc.selection.Font.Bold = True
wdoc.Selection.typetext "blah blah blah"
ElseIf Me.OptionButton2 = True Then
Wdoc.selection.Font.Bold = False
wdoc.Selection.typetext "blah blah blah"
End If
Kind regards
Jens Bonde
Microsoft Office Specialist Trainer
Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us
London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector
Wed 1 Aug 2018: Automatically marked as resolved.
Training information:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Adding cells, Rows & columnsplace your cursor on a cell, row number or column letter and use CTRL + SHIFT + + or CTRL + + depending on which + you prefer to use. |