I have a worksheet with 5 commandbuttons. Each commndbutton opens the same userform. There is a single textbox and an 'enter' commandbutton on the userform.

When the userform is openend using commandbutton1, I want data from textbox1 to be placed in say cell A1 when the userform 'enter' button is clicked.

When the userform is opened using commandbutton2, I want data from textbox2 to be placed is say cell B1 when the userform 'enter' button is clicked.

Would appreciate any assistance/examples on how to code this.

Cheers

Peter