Paul Hammond was telling us:
Paul Hammond nous racontait que :
> I have created a button on a master document that merges
> it to a new document and updates the fields. This works
> fine, but it also places a button on each page. I need
> this button removed from the final document, but I can't
> figure out how.
The first thing the button code should do is delete the button. As you have
found out, there isn't a Delete property for the button.
An easy work around is to encapsulate the button in a bookmarked range
paragraph and to delete that range.
If you need it floating, put the button in a textbox, anchor the textbox to
an empty paragraph, bookmark that paragraph mark, delete the bookmarked
range.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Paul Hammond - 11 Nov 2004 19:33 GMT
JM wrote
>The first thing the button code should do is delete the button. As you have
>found out, there isn't a Delete property for the button.
>An easy work around is to encapsulate the button in a bookmarked range
>paragraph and to delete that range.
>If you need it floating, put the button in a textbox, anchor the textbox to
>an empty paragraph, bookmark that paragraph mark, delete the bookmarked
That solved one problem, but caused another.
My original document is missing the button now, which I
guess I can live with by just not saving the document.
Merci beaucoup.
Paul