I have never had to assign a command button to code. I initially create the command button, then right-click to view code. At this point, I type out the code and the command button will execute that code when clicked.
The command buttons were working great on my other laptop before I bought this new one and copied the workbook to the new laptop.
I also do not understand the reference to "sharp instead of control."