Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2004

Tip: Looking for answers? Try searching our database.

Removing Butttons

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Hammond - 11 Nov 2004 15:03 GMT
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
Jean-Guy Marcil - 11 Nov 2004 17:30 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.