I have had trouble with textbox text to worksheet

T

Thomas

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???
 
O

OJ

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
 
Top