Removing Butttons

P

Paul Hammond

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.


TIA,

Paul Hammond
Richmond, VA
 
J

Jean-Guy Marcil

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.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
P

Paul Hammond

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
 

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