Sorry AGraham, my example was psudo code :-( Oops.
I never intended anyone to spend time on it. Or this post.
Happy New Year mate, hope it's good for you
I considered using Case etc. I'd still need 4 seperate Case statements ?
The code in my dll works fine.
I just felt a bit hypocritical of telling other forum users about the
255 Buttonx_Click events when Control and Sender are available.
I'll give your code some perusing tomorrow.
Best regards Barry.