Deleting multiple checkboxes

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
 
J

Jay Freedman

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top