The easiest and most flexible way to do this is to click on the cells with the numbers, rather than adding buttons.
"The number clicked needs to be used in another cell." That's a little vague so I didn't know what to do with the number. In this example the clicked number goes into E5. Modify code to suit.
Bookmarks