Discussion:
Command Button in Word
(too old to reply)
pcfreak007
2005-08-17 15:51:21 UTC
Permalink
I want put a button on 15 pages this button the next commando
must carry out, if I click on the button he the page where this button
on state must remove. there is someone who can me give the complete code
to let work to this button

p.s. I use MS Office 2000

thnx,
pcfreak007
Jean-Guy Marcil
2005-08-18 03:49:03 UTC
Permalink
Post by pcfreak007
I want put a button on 15 pages this button the next commando
must carry out, if I click on the button he the page where this button
on state must remove. there is someone who can me give the complete
code to let work to this button
p.s. I use MS Office 2000
Create a toolbar and the following macro. Add a button on your toolbar that
will execute the macro. All the user has to do is place the cursor anywhere
in the page to be deleted and click on the toolbar button. (You could add
the button to an existing toolbar). Much easier than adding 15 buttons....

By the way, I noticed that you posted this question several times during the
last few days and did not get any help.
Remember that we are all volunteers and that if someone ask for another
person to do his whole work for him.... then do not be surprised if nobody
is helping... This is a help network... this means the people being helped
have already done some work....The way you ask for helps lets us believe
that you haven't done any real work yet... or you would have a more specific
question...



Sub DeleteCurrentPage()

Selection.Bookmarks("\Page").Range.Delete

End Sub
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
***@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Loading...