| View previous topic :: View next topic |
| Author |
Message |
Gopra Guest
|
Posted: Tue Oct 09, 2007 12:24 pm Post subject: Disable command button |
|
|
I have created a tool bar namded "MyStandard", i want to disable a specific
button when view of is changed to slide sorter. Is it possible ? |
|
| Back to top |
|
 |
Google Sponsor

|
Posted: Tue Oct 09, 2007 12:24 pm Post subject: Advertisement |
|
|
|
|
| Back to top |
|
 |
Jean-Guy Marcil Guest
|
Posted: Tue Oct 09, 2007 1:47 pm Post subject: Re: Disable command button |
|
|
Gopra was telling us:
Gopra nous racontait que :
| Quote: | I have created a tool bar namded "MyStandard", i want to disable a
specific button when view of is changed to slide sorter. Is it
possible ?
|
Isn't this a PowerPoint question? (Slides)
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org |
|
| Back to top |
|
 |
Gopra Guest
|
Posted: Wed Oct 17, 2007 12:51 pm Post subject: Re: Disable command button |
|
|
Hi, sorry for the mess-up
I want to greyed out some buttons while i am not doing a particular actions.
eg. if i select some text or object only the copy button will be enable other
wise its greyout like that if am doing some particular action at that time
only the button must be activated otherwise it wont.
i try to explain som what pls.. answer it
"Jean-Guy Marcil" wrote:
| Quote: | Gopra was telling us:
Gopra nous racontait que :
I have created a tool bar namded "MyStandard", i want to disable a
specific button when view of is changed to slide sorter. Is it
possible ?
Isn't this a PowerPoint question? (Slides)
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
|
|
|
| Back to top |
|
 |
Jean-Guy Marcil Guest
|
Posted: Wed Oct 17, 2007 9:00 pm Post subject: Re: Disable command button |
|
|
Gopra was telling us:
Gopra nous racontait que :
| Quote: | Hi, sorry for the mess-up
|
OK, but you have not answered. Is it a PowerPoint application you are
working on?
| Quote: | I want to greyed out some buttons while i am not doing a particular
actions. eg. if i select some text or object only the copy button
will be enable other wise its greyout like that if am doing some
particular action at that time only the button must be activated
otherwise it wont.
|
PowerPoint or Word, this type of behaviour will be very difficult to trap
and code for.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org |
|
| Back to top |
|
 |
Gopra Guest
|
Posted: Fri Oct 19, 2007 10:07 am Post subject: Re: Disable command button |
|
|
Word
"Jean-Guy Marcil" wrote:
| Quote: | Gopra was telling us:
Gopra nous racontait que :
Hi, sorry for the mess-up
OK, but you have not answered. Is it a PowerPoint application you are
working on?
I want to greyed out some buttons while i am not doing a particular
actions. eg. if i select some text or object only the copy button
will be enable other wise its greyout like that if am doing some
particular action at that time only the button must be activated
otherwise it wont.
PowerPoint or Word, this type of behaviour will be very difficult to trap
and code for.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
|
|
|
| Back to top |
|
 |
Jean-Guy Marcil Guest
|
Posted: Fri Oct 19, 2007 4:05 pm Post subject: Re: Disable command button |
|
|
Gopra was telling us:
Gopra nous racontait que :
I still do not know what a slide sorter is in Word, but from your second
reply in this post, it seems that you will need to work with application
events, specifically the WindowSelectionChange event.
See
http://word.mvps.org/faqs/macrosvba/AppClassEvents.htm
for a start.
However, be warned that it is a difficult endeavour, especially if you have
never worked with application events. Some are easier to use (Like
DocumentBeforeClose), but what you are after will be difficult. If done
wrong, it may slow down Word so much that people using your solution will
curse your name! ;-)
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org |
|
| Back to top |
|
 |
|