QueryOptions object
Removes all dimension groups that are not in the selected group.
Read-write, Boolean
This example shows how to enable the RemoveUnselectedGroup (Property) when a check box is checked:
if (ActiveDocument.Sections["QueryOptions"].Shapes["CheckBox9"].Checked) {ActiveDocument.Sections["Query"].QueryOptions.RemoveUnselectedGroup = true} else {ActiveDocActiveDocument.Sections["Query"].QueryOptions.RemoveUnselectedGroupument.Sections["Query"].QueryOptions.RemoveUnselectedGroup = false}