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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top