Hi, Robert,
I don't know why a button on the second page won't work, but you don't
say what kind of button it is -- a command button from the Control
Toolbox, or a MacroButton field, or something else??
I don't care for the Control Toolbox widgets at all, because they
don't play nicely with Word. Let me suggest an alternative: Create a
custom toolbar in your template, put your button on it, and let it
float near the bottom of the window instead of docked at the top. That
combines the advantages of the toolbar button (it actually works as
intended, and you don't have to do fancy footwork to prevent it from
printing) with those of the in-document button (it doesn't get lost
among dozens of other buttons).
BTW, I meant that code to be all in one macro, not two. I guess I
shouldn't have left out the Sub and End Sub statements. Something like
this:
Sub ZapControlsAndFields()
Dim oInline As InlineShape
Dim oShp As Shape
Dim oFld As Field
If ActiveDocument.ProtectionType <> wdNoProtection Then
ActiveDocument.Unprotect
End If
For Each oInline In ActiveDocument.InlineShapes
If oInline.Type = wdInlineShapeOLEControlObject Then
oInline.Delete
End If
Next oInline
For Each oShp In ActiveDocument.Shapes
If oShp.Type = msoOLEControlObject Then
oShp.Delete
End If
Next oShp
For Each oFld In ActiveDocument.Fields
oFld.Unlink
Next oFld
End Sub