Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default RibbonX Controls and Determining Enabled?

Hey All,

I am aware of the 'Enabled' attributed and associated 'getEnabled' callback.

However, what if I just want to determine if a control in enabled? For
example, I do not want to set its state in XML and I do not want to change
its 'Enabled' property via the callback but, rather, I just want to find out
if it is enabled or not.

With the old CommandBarButtons, one could call the 'Enabled' property to
determine this.

Is there some way to determine if a Ribbon control is enabled?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,489
Default RibbonX Controls and Determining Enabled?

Hi,

For a built-in control you can use GetEnabledMso.
Example for paste button.

application.CommandBars.GetEnabledMso("Paste")

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"TMC" wrote in message
...
Hey All,

I am aware of the 'Enabled' attributed and associated 'getEnabled'
callback.

However, what if I just want to determine if a control in enabled? For
example, I do not want to set its state in XML and I do not want to change
its 'Enabled' property via the callback but, rather, I just want to find
out if it is enabled or not.

With the old CommandBarButtons, one could call the 'Enabled' property to
determine this.

Is there some way to determine if a Ribbon control is enabled?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 834
Default RibbonX Controls and Determining Enabled?

I am not aware of any way that you can address a control on the ribbon other
than via a callback, when the control is passed to the callback procedure.

HTH
Bob

"TMC" wrote in message
...
Hey All,

I am aware of the 'Enabled' attributed and associated 'getEnabled'
callback.

However, what if I just want to determine if a control in enabled? For
example, I do not want to set its state in XML and I do not want to change
its 'Enabled' property via the callback but, rather, I just want to find
out if it is enabled or not.

With the old CommandBarButtons, one could call the 'Enabled' property to
determine this.

Is there some way to determine if a Ribbon control is enabled?

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default RibbonX Controls and Determining Enabled?

Thanks Andy!

Exactly what I was seeking ;-)



"Andy Pope" wrote in message
...
Hi,

For a built-in control you can use GetEnabledMso.
Example for paste button.

application.CommandBars.GetEnabledMso("Paste")

Cheers
Andy

--

Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
"TMC" wrote in message
...
Hey All,

I am aware of the 'Enabled' attributed and associated 'getEnabled'
callback.

However, what if I just want to determine if a control in enabled? For
example, I do not want to set its state in XML and I do not want to
change its 'Enabled' property via the callback but, rather, I just want
to find out if it is enabled or not.

With the old CommandBarButtons, one could call the 'Enabled' property to
determine this.

Is there some way to determine if a Ribbon control is enabled?

Thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RibbonX, Keytips, Menu Controls and Underscores? TMC[_2_] Excel Programming 3 November 24th 09 08:36 PM
Determining if the user enabled macros Samuel Looney Excel Programming 11 February 13th 09 09:21 PM
Multipage Pages will not show controls when enabled RyanH Excel Programming 7 July 1st 08 01:50 AM
CommandBars("Worksheet Menu Bar").Controls("Tools").Enabled = Fals Arturo Excel Programming 3 May 26th 05 05:44 PM
looping through userform controls changing enabled and locked properties JulieD Excel Programming 2 August 14th 04 12:44 PM


All times are GMT +1. The time now is 09:44 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"