Control Box Conditional Formatting

T

TBarker

--cross post from 'other' Word Programming board--this board looks to have
more action.

Word 11

I have a check box (control) in my document that I would like it to be bold
when checked and regular when clear. I believe this can be done with VBA but
beyond recording/editing Macros, I don't know how to write the code. Any
information would be greatly appreciated. Please advise if more information
is needed.

TIA
Tanya
 
H

Helmut Weber

Hi Tanja,

how about this:

Private Sub CheckBox1_Click()
CheckBox1.Font.Bold = CheckBox1.Value
End Sub

HTH

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

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

Top