Could you elaborate more? I don't understand your question.
I think Cory is after the commandbar contol ID#.
There is a liitle know technique for exercuting
commandbar functions throught the use of the
commandbars ID# eg to invoke the clicking of the
Minimise window you would call
Application.CommandBars.FindControl(ID:=838).Execute
ID#838 is part of the Sytems commandbar ie minimise .....there are a whole host of command IDs that simulates the button clicks.
I have manage to get a list....if interested I can email this list.
Ivan
Okay, I think I understand now. The Microsoft MSDN 2000 documentation shows an example of accomplishing the task without using the specific ID numbers, just a name. Here it is:
Set oldCtrl = CommandBars("Custom").Controls(1)
If oldCtrl.Type = 1 Then
Set newCtrl = CommandBars.FindControl(Type:= _
MsoControlButton, ID:= _
CommandBars("Standard").Controls("Copy").ID)
NewCtrl.CopyFace
OldCtrl.PasteFace
End If
Ivan, I'd also be interested in see the list. Thanks, Tuc