J
Jos Vens
Hi,
I wonder what's wrong in my procedure: I want to change the cut, copy and
paste menu in my custom menu procedures. I can make it work but I doubt if
it always (on every machine) will work.
I work with Excel 2000
This works:
Application.CommandBars(1).Controls(2).Controls(3).OnAction = "TB_Cut"
Application.CommandBars(1).Controls(2).Controls(4).OnAction = "TB_Copy"
Application.CommandBars(1).Controls(2).Controls(5).OnAction = "TB_Paste"
If the user changes the commandbar, I think the wrong menu-items will be
changed, so I changed my procedure without a result (my new procedure is not
applied to the menu)
Application.CommandBars.FindControl(ID:=21).OnAction = "TB_Cut"
Application.CommandBars.FindControl(ID:=19).OnAction = "TB_Copy"
Application.CommandBars.FindControl(ID:=22).OnAction = "TB_Paste"
I guess the second method is better, but does not the job.
Can anyone help?
Thanks
Jos Vens
I wonder what's wrong in my procedure: I want to change the cut, copy and
paste menu in my custom menu procedures. I can make it work but I doubt if
it always (on every machine) will work.
I work with Excel 2000
This works:
Application.CommandBars(1).Controls(2).Controls(3).OnAction = "TB_Cut"
Application.CommandBars(1).Controls(2).Controls(4).OnAction = "TB_Copy"
Application.CommandBars(1).Controls(2).Controls(5).OnAction = "TB_Paste"
If the user changes the commandbar, I think the wrong menu-items will be
changed, so I changed my procedure without a result (my new procedure is not
applied to the menu)
Application.CommandBars.FindControl(ID:=21).OnAction = "TB_Cut"
Application.CommandBars.FindControl(ID:=19).OnAction = "TB_Copy"
Application.CommandBars.FindControl(ID:=22).OnAction = "TB_Paste"
I guess the second method is better, but does not the job.
Can anyone help?
Thanks
Jos Vens