Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2007 ribbon issue when in cell edit mode

I have the most basic tab created for the Excel 2007 ribbon, xml at end along
with VBA

After Excel starts, if I click my tab, my button is enabled and it works.
After that, regardless of the state my current cell is in if I go back to my
tab, my button is still enabled.

However, if when I start Excel I immediately enter something into cell A1,
then while still in edit mode I click my tab on the ribbon, I get a beep, and
my button is not enabled. Furthermore, it will never become enabled short of
disabling my add-in and reloading, or restarted Excel.
Interestingly enough, if I removed the getEnabled callback, it works fine.
However, if fails in the same way if I try to use a GetLabel callback.

Obviously, the problem is moot if the user is not in edit mode when he
clicks my tab. However, I can't control that. What can I do to restore my
tab to functioning if and when this situation occurs?

Ribbon XML:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="myTab" label="ThisTab"
<group id="grp1" label="grp1"
<button id="btn1" label="btn1Label"
getEnabled="btn1Enabled" onAction="btn1CB"/
</group
</tab
</tabs
</ribbon
</customUI

VBA from my xlam file, Module1:
Option Explicit
Private Sub Btn1CB(control As IRibbonControl)
MsgBox "Btn1CB"
End Sub
Private Sub btn1Enabled(control As IRibbonControl, ByRef returnedVal)
returnedVal = 1
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Excel 2007 ribbon issue when in cell edit mode

Hi N. L. Devotie

Known problem that will not be fixed
I bugged a problem with a dynamic menu


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm



"N. L. Devotie" <N. L. wrote in message
...
I have the most basic tab created for the Excel 2007 ribbon, xml at end along
with VBA

After Excel starts, if I click my tab, my button is enabled and it works.
After that, regardless of the state my current cell is in if I go back to my
tab, my button is still enabled.

However, if when I start Excel I immediately enter something into cell A1,
then while still in edit mode I click my tab on the ribbon, I get a beep, and
my button is not enabled. Furthermore, it will never become enabled short of
disabling my add-in and reloading, or restarted Excel.
Interestingly enough, if I removed the getEnabled callback, it works fine.
However, if fails in the same way if I try to use a GetLabel callback.

Obviously, the problem is moot if the user is not in edit mode when he
clicks my tab. However, I can't control that. What can I do to restore my
tab to functioning if and when this situation occurs?

Ribbon XML:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="myTab" label="ThisTab"
<group id="grp1" label="grp1"
<button id="btn1" label="btn1Label"
getEnabled="btn1Enabled" onAction="btn1CB"/
</group
</tab
</tabs
</ribbon
</customUI

VBA from my xlam file, Module1:
Option Explicit
Private Sub Btn1CB(control As IRibbonControl)
MsgBox "Btn1CB"
End Sub
Private Sub btn1Enabled(control As IRibbonControl, ByRef returnedVal)
returnedVal = 1
End Sub


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel 2007 ribbon issue when in cell edit mode

Ron, excellent web-site you have. Lots of great stuff. Thanks for taking
the time to read my post. How can I report a bug, or ask a question,
directly to the Microsoft Excel weenies?

"Ron de Bruin" wrote:

Hi N. L. Devotie

Known problem that will not be fixed
I bugged a problem with a dynamic menu


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm



"N. L. Devotie" <N. L. wrote in message
...
I have the most basic tab created for the Excel 2007 ribbon, xml at end along
with VBA

After Excel starts, if I click my tab, my button is enabled and it works.
After that, regardless of the state my current cell is in if I go back to my
tab, my button is still enabled.

However, if when I start Excel I immediately enter something into cell A1,
then while still in edit mode I click my tab on the ribbon, I get a beep, and
my button is not enabled. Furthermore, it will never become enabled short of
disabling my add-in and reloading, or restarted Excel.
Interestingly enough, if I removed the getEnabled callback, it works fine.
However, if fails in the same way if I try to use a GetLabel callback.

Obviously, the problem is moot if the user is not in edit mode when he
clicks my tab. However, I can't control that. What can I do to restore my
tab to functioning if and when this situation occurs?

Ribbon XML:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="myTab" label="ThisTab"
<group id="grp1" label="grp1"
<button id="btn1" label="btn1Label"
getEnabled="btn1Enabled" onAction="btn1CB"/
</group
</tab
</tabs
</ribbon
</customUI

VBA from my xlam file, Module1:
Option Explicit
Private Sub Btn1CB(control As IRibbonControl)
MsgBox "Btn1CB"
End Sub
Private Sub btn1Enabled(control As IRibbonControl, ByRef returnedVal)
returnedVal = 1
End Sub


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Excel 2007 ribbon issue when in cell edit mode

I already report it in the beta groups and the answer was will not be fixed so
report it again will not help I think.

Look for a link on this site
http://msdn.microsoft.com/en-us/office/aa905515.aspx



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm



"N. L. Devotie" wrote in message ...
Ron, excellent web-site you have. Lots of great stuff. Thanks for taking
the time to read my post. How can I report a bug, or ask a question,
directly to the Microsoft Excel weenies?

"Ron de Bruin" wrote:

Hi N. L. Devotie

Known problem that will not be fixed
I bugged a problem with a dynamic menu


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm



"N. L. Devotie" <N. L. wrote in message
...
I have the most basic tab created for the Excel 2007 ribbon, xml at end along
with VBA

After Excel starts, if I click my tab, my button is enabled and it works.
After that, regardless of the state my current cell is in if I go back to my
tab, my button is still enabled.

However, if when I start Excel I immediately enter something into cell A1,
then while still in edit mode I click my tab on the ribbon, I get a beep, and
my button is not enabled. Furthermore, it will never become enabled short of
disabling my add-in and reloading, or restarted Excel.
Interestingly enough, if I removed the getEnabled callback, it works fine.
However, if fails in the same way if I try to use a GetLabel callback.

Obviously, the problem is moot if the user is not in edit mode when he
clicks my tab. However, I can't control that. What can I do to restore my
tab to functioning if and when this situation occurs?

Ribbon XML:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="myTab" label="ThisTab"
<group id="grp1" label="grp1"
<button id="btn1" label="btn1Label"
getEnabled="btn1Enabled" onAction="btn1CB"/
</group
</tab
</tabs
</ribbon
</customUI

VBA from my xlam file, Module1:
Option Explicit
Private Sub Btn1CB(control As IRibbonControl)
MsgBox "Btn1CB"
End Sub
Private Sub btn1Enabled(control As IRibbonControl, ByRef returnedVal)
returnedVal = 1
End Sub


.

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
Help! Ungrouping Excel Charts -- EMF/WMF. Can't edit objects in 2007 (Freeform issue). Steve Rindsberg? Bob Charts and Charting in Excel 2 November 12th 08 05:58 PM
EXCEL 2007 COMPATIBILITY MODE ISSUE Gemi Setting up and Configuration of Excel 1 September 29th 08 03:01 AM
Excel 2007-starts in cell edit mode dalec Excel Discussion (Misc queries) 0 August 1st 07 11:14 PM
VSTO and Excel-- End Cell Edit Mode Programmatically? [email protected] Excel Programming 2 July 25th 06 06:47 AM
VSTO and Excel--End Cell Edit Mode? Jim Tilson Excel Programming 15 September 29th 05 08:40 PM


All times are GMT +1. The time now is 02:41 PM.

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

About Us

"It's about Microsoft Excel"