Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #16  
Old 04-16-2018, 09:09 PM
lord_kaiser lord_kaiser is offline xml error .docm Windows 10 xml error .docm Office 2016
Novice
xml error .docm
 
Join Date: Apr 2018
Posts: 13
lord_kaiser is on a distinguished road
Default

Ok,



I think i sorted it out and it works.

For some reason i deleted the controls and added them in again and then it worked.
Reply With Quote
  #17  
Old 04-16-2018, 09:14 PM
Guessed's Avatar
Guessed Guessed is offline xml error .docm Windows 10 xml error .docm Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,967
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

The concept of a group of checkbox content controls working in the same way as the old group of radio buttons (only allowing one active selection) is tricky to code. There may be a more elegant way to do this but my attempt is more flexible in supporting more than two options.
Code:
Private Sub Document_ContentControlOnExit(ByVal aCCactive As ContentControl, Cancel As Boolean)
  Dim aCC As ContentControl
  Select Case aCCactive.Title
    Case "MyCheck", "Q1"
      If aCCactive.Checked Then
        For Each aCC In ActiveDocument.SelectContentControlsByTitle(aCCactive.Title)
          aCC.Checked = False
        Next aCC
        aCCactive.Checked = True
      End If
  End Select
End Sub
Attached Files
File Type: docm Checkboxes.docm (24.7 KB, 71 views)
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #18  
Old 04-16-2018, 11:13 PM
lord_kaiser lord_kaiser is offline xml error .docm Windows 10 xml error .docm Office 2016
Novice
xml error .docm
 
Join Date: Apr 2018
Posts: 13
lord_kaiser is on a distinguished road
Default

Thanks for your help Guessed
Reply With Quote
Reply

Tags
.docm, xml issue

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
xml error .docm Word VBA docm to dotm problem spider85 Word VBA 2 04-17-2017 02:08 AM
xml error .docm SaveAs docm file from template ptmuldoon Word VBA 7 03-09-2015 05:38 PM
xml error .docm DOCM file not saving on Microsoft Word 2010 flutterby1 Word 4 10-08-2014 10:55 AM
xml error .docm How to convert docm to dotm without opening the file Moz Word 1 12-20-2012 04:23 PM
Docm content dissapearing when I open the file? shabbaranks Word 2 07-18-2012 01:13 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft