PC Review


Reply
Thread Tools Rate Thread

Accessing the excel 2007 context menus...

 
 
Jimm
Guest
Posts: n/a
 
      25th Jun 2008
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 With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      25th Jun 2008
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" <(E-Mail Removed)> wrote in message news:9DFFFF69-DEEB-4429-87E5-(E-Mail Removed)...
> 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 With Quote
 
Jimm
Guest
Posts: n/a
 
      26th Jun 2008
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(missing, 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" <(E-Mail Removed)> wrote in message news:9DFFFF69-DEEB-4429-87E5-(E-Mail Removed)...
> > 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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Find in Outlook 2007 context menus wrnoof Microsoft Outlook Discussion 12 16th Oct 2009 06:46 PM
Removing Old Context Menus in AC 2007 JamesJ Microsoft Access Forms 5 18th Feb 2009 10:23 AM
adding to Context Menus in Excel 2007 hickymanz Microsoft Excel Programming 6 2nd Sep 2008 09:14 AM
[Excel '03] check-box menu items and cell context menus don't disp Jack Hoxley [MVP] Microsoft Excel Programming 4 2nd May 2008 05:08 PM
Context menus and treeviews, suggestions for a NODE sensitive context menu Eric Newton Microsoft Dot NET Framework Forms 4 13th Jan 2004 09:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:21 PM.