FindControl ID#s


Posted by Cory on June 14, 2001 9:39 AM

Does anyone have a list of the FindControl ID numbers?

Posted by Tuc on June 14, 2001 11:27 AM

Could you elaborate more? I don't understand your question.

Posted by Ivan F Moala on June 15, 2001 8:39 AM

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



Posted by Tuc on June 15, 2001 9:54 AM

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