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 / October 2007

Tip: Looking for answers? Try searching our database.

Disable command button

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gopra - 09 Oct 2007 13:24 GMT
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 ?
Jean-Guy Marcil - 09 Oct 2007 14:47 GMT
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)

Signature

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

Gopra - 17 Oct 2007 13:51 GMT
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

> Gopra was telling us:
> Gopra nous racontait que :
[quoted text clipped - 4 lines]
>
> Isn't this a PowerPoint question? (Slides)
Jean-Guy Marcil - 17 Oct 2007 22:00 GMT
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

 
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.