How have you tried this?
And how are you (in fact why are you) creating the buttons dynamically?
ADDED BY ADMIN
To name CommandButton ( ActiveX From Control Toolbox )
Right click on the button and choose Properties and edit (Name).
To name aButton ( NOT ActiveX From Forms Toolbar )
Select the button and type a new name in the Name Box (left of the Formula Bar) and then Enter.