LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Right click menu

Does someone have an idea why this doesn´t work?
I had a crash and had to reinstall Excel.
When trying to add controls again to my right click menu I get an error
on the line .OnAction stating
"Fault nr '-2147467259 (80004005)'.:
The method 'OnAction' in the object '_CommandBarButton' failed"

By adding On error resume next I can read that
..OnAction had become the value .OnAction = ""


Set Newitem3 = CommandBars("Cell").Controls.Add
With Newitem3
.Caption = "Klistra in summa"
.OnAction = "Klistra_in_summa"
End With

Any help appriciated as I find the right click menues very helpful

Mats Bergstrand


 
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
Alt Shortcut from right-click menu JB2010 Excel Discussion (Misc queries) 1 July 26th 07 05:08 PM
Add Command to Right-Click Menu Andy Excel Programming 3 January 11th 05 02:00 PM
right click menu PT SPORT CONTRUCTION CO.,LTD Excel Programming 2 October 13th 04 11:18 AM
Adding a menu item right click menu when clicking on a single. Andoni[_28_] Excel Programming 0 September 2nd 04 10:23 PM
Adding menu to the mouse right click pop-up menu Jack Excel Programming 1 February 12th 04 05:23 AM


All times are GMT +1. The time now is 04:46 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"