Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

Disable command button

 
Post new topic   Reply to topic    Computer Forum Forum Index -> word vba customization
View previous topic :: View next topic  
Author Message
Gopra
Guest





PostPosted: Tue Oct 09, 2007 12:24 pm    Post subject: Disable command button Reply with 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 ?
Back to top
Google
Sponsor





PostPosted: Tue Oct 09, 2007 12:24 pm    Post subject: Advertisement

Back to top
Jean-Guy Marcil
Guest





PostPosted: Tue Oct 09, 2007 1:47 pm    Post subject: Re: Disable command button Reply with quote

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





PostPosted: Wed Oct 17, 2007 12:51 pm    Post subject: Re: Disable command button Reply with quote

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





PostPosted: Wed Oct 17, 2007 9:00 pm    Post subject: Re: Disable command button Reply with quote

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





PostPosted: Fri Oct 19, 2007 10:07 am    Post subject: Re: Disable command button Reply with quote

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





PostPosted: Fri Oct 19, 2007 4:05 pm    Post subject: Re: Disable command button Reply with quote

Gopra was telling us:
Gopra nous racontait que :

Quote:
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! ;-)

--

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> word vba customization All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum