Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Word
application.errors
conversions
docmanagement
drawing.graphics
formatting.longdocs
international
internet.assistant
mail
mailmerge.fields
menustoolbars
newusers
numbering
oleinterop
pagelayout
printingfonts
setup.networking
spelling.grammar
tables
vba.addins
vba.beginners
vba.customization
vba.general
vba.userforms
web.authoring
word6-7macros
word97vba
  
 
date: Tue, 9 Oct 2007 05:24:01 -0700,    group: microsoft.public.word.vba.customization        back       


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 ?
date: Tue, 9 Oct 2007 05:24:01 -0700   author:   Gopra

Re: Disable command button   
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
date: Tue, 9 Oct 2007 09:47:26 -0400   author:   Jean-Guy Marcil DontEvenTry@NoSpam

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:

> 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 
> 
> 
>
date: Wed, 17 Oct 2007 05:51:01 -0700   author:   Gopra

Re: Disable command button   
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
date: Wed, 17 Oct 2007 17:00:42 -0400   author:   Jean-Guy Marcil DontEvenTry@NoSpam

Re: Disable command button   
Word 

"Jean-Guy Marcil" wrote:

> 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 
> 
> 
>
date: Fri, 19 Oct 2007 03:07:40 -0700   author:   Gopra

Re: Disable command button   
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! ;-)

-- 

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org
date: Fri, 19 Oct 2007 12:05:11 -0400   author:   Jean-Guy Marcil DontEvenTry@NoSpam

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us