i new thankful help.
i have ms word document have (1) combo box content control following options:
minority business enterprise (mbe)
encouraging diversity, growth , equity (edge)
minority business enterprise (mbe) , encouraging diversity, growth , equity (edge)
i have (2) rich text content controls on document too.
i need text boxes appear or not appear based on selection in combo box content control. for example,
if combo box content control = minority business enterprise (mbe) 1st rich text content control should display not 2nd rich text content control
if combo box content control = encouraging diversity, growth , equity (edge) 1st rich text content control should not display not 2nd rich text content control should display.
if combo box content control = minority business enterprise (mbe) , encouraging diversity, growth , equity (edge) both rich text content controls should display
also, not sure how find out names word give rich text content controls , combo box content control. do name them how?
any great.
thank in advance.
[moved from:office/word/windows 10/office 2016]
hi todd, should work fro . . .
private sub combobox1_change()
if combobox1.value = "minority business enterprise (mbe)"
txtfield1.visible = true
txtfield2.visible = false
else
if combobox1.value = "encouraging diversity, growth , equity (edge)"
txtfield1.visible = false
txtfield2.visible = true
else
txtfield1.visible = true
txtfield2.visible = true
end if
end if
end sub
Office / Word / Microsoft Office Programming / Office 2016
Comments
Post a Comment