Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Accessing the excel 2007 context menus...

Can anyone tell me how to access the command buttons on the 'Row' context
menu in Excel 2007. Using Id 293 works for Excel 2003 and it also locates a
Row/&Delete... menu item but this seems to not be the one that pops up when
you right click on a highlighted row. I'm trying to hook into the click event
for this menu item.

Jimm
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Accessing the excel 2007 context menus...

Hi Jimm

This is working Ok in 2007
Application.CommandBars("Row").FindControl(ID:=293 ).Enabled = False




--

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


"Jimm" wrote in message ...
Can anyone tell me how to access the command buttons on the 'Row' context
menu in Excel 2007. Using Id 293 works for Excel 2003 and it also locates a
Row/&Delete... menu item but this seems to not be the one that pops up when
you right click on a highlighted row. I'm trying to hook into the click event
for this menu item.

Jimm

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Accessing the excel 2007 context menus...

Correct - I'm able to find that control but it seems to not be the one I'm
looking for...
If I use the following code - I get no event firing...

Office.CommandBarButton btn =
(CommandBarButton)App.CommandBars.FindControl(miss ing, 293, missing, missing);

btn.Click += App_DeleteClick;

I find the control - but the event never fires...

"Ron de Bruin" wrote:

Hi Jimm

This is working Ok in 2007
Application.CommandBars("Row").FindControl(ID:=293 ).Enabled = False




--

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


"Jimm" wrote in message ...
Can anyone tell me how to access the command buttons on the 'Row' context
menu in Excel 2007. Using Id 293 works for Excel 2003 and it also locates a
Row/&Delete... menu item but this seems to not be the one that pops up when
you right click on a highlighted row. I'm trying to hook into the click event
for this menu item.

Jimm


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
Sub-menus of main menus for Excel 2007 Eleanor Peppard New Users to Excel 1 March 16th 10 04:12 PM
Adding commands to the Excel 2007 Chart context menu Andreas Charts and Charting in Excel 1 January 23rd 09 08:15 PM
[Excel '03] check-box menu items and cell context menus don't disp Jack Hoxley [MVP] Excel Programming 5 May 2nd 08 05:08 PM
Adding context menu to shapes in Excel 2007 JJ Excel Programming 0 June 2nd 07 12:28 PM
Excel 2007 menus - XML Notepad 2007 michael.beckinsale Excel Programming 5 February 13th 07 08:15 PM


All times are GMT +1. The time now is 12:30 AM.

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"