Most likely you haven't copied the whole example. The code uses a class named clsCommandButtons over here
Dim CommandButtons(15) As clsCommandButtons
But if you haven't included definition for that class in your project, compile will fail.
So have a look at the source code again and check if the definition exists. Note that it may be in a separate module.