User Form Adding Data to Worksheet

T

TotallyConfused

Hi I need help on how to add UserForm Data to worksheet. I have the
following code and it is not working. I used the code from Microsoft
Article. My UserForm consists of a multipage with 4 pages of textboxes and
frames with checkboxes. I also need to know how to add data from checkboxes
to worksheet. For instance some of the frames have several checkboxes that
can either be one choice or several choices. Thank you in advance for any
help you can provide.

Private Sub CommandButton7_Click()
Dim lastRow As Object

Set lastRow = RequestorInfo.Range("a655536").End(x1Up)

lastRow.Offset(1, 0).Value = txtDate.Text
lastRow.Offset(1, 1).Value = txtFNM.Text
lastRow.Offset(1, 2).Value = txtLNM.Text
lastRow.Offset(1, 3).Value = txtemail.Text
lastRow.Offset(1, 4).Value = txtDept.Text

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