Thread: [Solved] xml error .docm
View Single Post
 
Old 04-16-2018, 08:38 PM
lord_kaiser lord_kaiser is offline Windows 10 Office 2016
Novice
 
Join Date: Apr 2018
Posts: 13
lord_kaiser is on a distinguished road
Default

Hi Paul,

Thank you for the help.

I still seem to be having issues as when switching between th eboxes, the selected value disappears.

here is my code:

Code:
  Case "chkYNEstatePlanning"
 
  
    With ActiveDocument.SelectContentControlsByTitle("chkYNEstatePlanning")
     If CC.ShowingPlaceholderText Then GoTo lbl_Exit
      If CC.Tag = "Yes" Then
        .Item(2).Checked = Not CC.Checked
      ElseIf CC.Tag = "No" Then
        .Item(1).Checked = Not CC.Checked
      End If
    End With
 Case Else
 End Select
lbl_Exit:
  Application.ScreenUpdating = True
  Exit Sub

End Sub
Reply With Quote