Hello to the excel community,

So I've recently discovered userforms which are nice and I'm trying to use one to create a randomised dice roll, with a picture of the dice in it.

At the moment I have a text box, a roll and a cancel button, and some code to put a random number in the box.

Private Sub CmdRoll_Click() 'CmdRoll is the name of the Roll button
Dim DiceNum As Integer
DiceNum = Int(6 * Rnd + 1)
TxtNumber = DiceNum ' TextNumber is the name of the text box
End Sub

Private Sub CmdCancel_Click() ' CmdCancel is the name of the Cancel Button
Unload Me
End Sub

I'd like to add a square with rounded edges and some dots onto my user form and then I will write some code to turn the dots on and off dependant on the number generated.

How do I add dots and squares (or any kind of shape really)?

Any instructions would be very helpful.

Thanks in advance,
Alex.