assign value to cell in other worksheet

M

mango

dear all, when click i want sample to be assigned to cell in other worksheet.
pls help
following is on the same sheet.

Private Sub CommandButton_Click()

Range("D2").Value = "sample"

End Sub
 
Top