I have had trouble with textbox text to worksheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am having trouble with textboxes in my userform. I would like to copy the
text from several textbox in the userform I set up in Visual Basic into the
proper cells on my worksheet. I have tried a couple of different ways but I
must be missing a step. Can anyone help???
 
Hi,
assuming you want to do it on the click of a button then..

Private Sub CommandButton1_Click()
ThisWorkbook.Sheets(1).Cells(1, 1).Value = Me.TextBox1.Value
End Sub

Where TextBox1 is your textbox...

Hth,
Oli
 

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

Back
Top