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