checkbox - to select content controls in word doc using VBScript -
I have enabled a word document in which doctors are multiple Chekboksejh / radio buttons at different locations, according to which UserInputs (Which I plan through InputBox instead of drop down) Let me know how this program can be achieved using VBSPit, please tell me.
Say I control (box 4 content word document) So, bottom lines based on userinput before a face will have to identify the content control basis
Reboot_Y_N = MsgBox ( "you need to reboot (yes / no)?", VbQuestion + vbYesNo, "reboot") If Reboot_Y_N = vbYes then ObjDocImp.ContentControls.Item (1). Checked = True ObjDocImp.ContentControls.Item (3) Checked = True ObjDocImp.ContentControls.Item (5). Czech was True = ObjDocImp.ContentControls.Item (7) .Checked = True Else ObjDocImp.ContentControls.Item (2) .Checked = true ObjDocImp.ContentControls.Item (4) .Checked = true ObjDocImp.ContentControls.Item (6) .checked = true ObjDocImp.ContentControls.Item (8) .short = true end if
Comments
Post a Comment