I have a userform that has around 100 command buttons on them.

Two are associated with each label on the useform.

The labels are populated with the names of work positions (dynamic).

My vision on this is to have the supervisor be able to pull up this userform, which shows all the employment positions. they can then hit one of two buttons (color coded command buttons) next to a label to have it either move up the list or down the list until they are happy with the results.

I was wondering if there was a way to recall what button was pressed in that specific button's code, have it retain that number, and then run a macro that would adjust the labels accordingly.

Example:
Private Sub CommandButton1_Click()
CB = Right(PostForm.CommandButton.Name, Len(PostForm.CommandButton1.Name) - Len("CommandButton"))
PositionUp (CB)
End Sub
I have name associations with each label to command button (i.e.. label 2 is associated with commandbutton2 for move up the list and commandbutton 52 to move down the list).

I know this could be done by going through each individual command button and just having a variable assigned a number and have it carry over, but was wondering if there was a way to do this for learning sake.