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.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Gopra - 19 Oct 2007 11:07 GMT
Word
> Gopra was telling us:
> Gopra nous racontait que :
[quoted text clipped - 12 lines]
> PowerPoint or Word, this type of behaviour will be very difficult to trap
> and code for.
Jean-Guy Marcil - 19 Oct 2007 17:05 GMT
Gopra was telling us:
Gopra nous racontait que :
> Word
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! ;-)

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org