I know I asked the same question about two days ago but I could really do with some help on this.

Without changing names to the same or making the index values the same (or copy and paste) is there any way in code to make a number of command buttons into an array that could be used to return an index value.

i.e. something like

sub myarray

dim mybuttonarray(3) as control/object

mybuttonarray = (cmdone,cmdtwo,cmdthree)

end sub

sub mybuttonarray_click (index as integer)

then code dependent on which button is clicked.....

end sub

Please help...

cheers
Steve