Deleting multiple checkboxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Does anyone know of a way to delete multiple checkboxes in a Word document?
I download a schedule and it has a checkbox with 'Remind Me' next to it. I
can delete the 'Remind Me' using the Find and Replace function but the
checkbox remains. I also run a Macro to get rid of all the hyperlinks at one
time, it works great. Using W2K/Word 2000. Thank you
 
The answer depends on what kind of checkboxes are in the document.
Word has three kinds: form fields from the Forms toolbar, ActiveX
boxes from the Control Toolbox toolbar, and characters from certain
symbol fonts (see http://gregmaxey.mvps.org/Add_Toggle_Objects.htm).

If they're form fields, this macro will delete the checkboxes (but not
other kinds of form fields).

Sub DeleteCheckboxFormFields()
Dim ff As FormField
For Each ff In ActiveDocument.FormFields
With ff
If .Type = wdFieldFormCheckBox Then
.Delete
End If
End With
Next ff
End Sub

Another way, without a macro, is to press Alt+F9 to display all field
codes and then run a Replace All to replace the expression

^19 formcheckbox

with nothing. This could also be incorporated in a macro, such as the
one you use to remove hyperlinks.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
Back
Top