[文件] word2007 checkbox.選後變顏色
軟體:
word 2007
我希望我的check box每次選了之後就會變顏色。
比方說本來是黑色的,勾選之後就會變紅色了
在2003,我要用vba寫marco
Sub a222()
With ActiveDocument
.Unprotect
With .FormFields("Check1")
If .CheckBox.Value = True Then
.Range.Font.Color = wdColorRed
x = 1
Else
.Range.Font.Color = wdColorAutomatic
y = 1
End If
End With
.Protect wdAllowOnlyFormFields, NoReset
End With
End Sub
但在2007不管用
請問有人知道2007要怎完成這項功能嗎?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 66.183.177.148
Office 近期熱門文章
PTT數位生活區 即時熱門文章