PASSING DATA FROM USER FORM TO EXCEL SPREADSHEET
--
HTH
Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
wrote in message
...
Bit different to what you initially asked!
Is This what you want?
Private Sub cmdCommit_Click()
iRow = Cells(Rows.Count, "A").End(xlUp).Row
If iRow = 1 And Range("A1") = "" Then
iRow = 1
Else
iRow = iRow + 1
End If
ThisWorkbook.Sheets("Sheet1").Cells
(iRow, "A").Value =
frmRGAInput.txtRGANum.Value
End Sub
Thank you for the response.
Now, going a step further I have 10 fields per record
that I'll be inputing data for. How can I make this work
for each field so that a new row is entered.
|