Hi there,
I'm currently designing a check-in program for my organization what will do three things:
1. The user will put their ID# into a form and click "submit"
2. VBA code places the ID number in the first available cell of the first available row on Worksheet1. The next 6 cells in that row run Vlookups to access data from the master participant sheet (Worksheet2)
3. VBA code runs an IF statement to see if the participant raised enough money, and then opens either an Accepted or Denied form
What I want to do is have the textboxes on the Accepted form display the information from the 6 vlookup cells (ie, have all that information put FROM the cell TO the textboxes on the form).
This is a snippet of the code I have for the first portion of the process, which places the number from the textbox into the first available row:
Private Sub Submit_Click()
Dim iRow As Long
Dim ws As Worksheet
Set ws = Worksheets("SignIn")
'find first empty row in database
iRow = ws.Cells(Rows.Count, 1) _
.End(xlUp).Offset(1, 0).Row
Can I somehow manipulate this to have it find the last filled row (maybe by making the 1 a -1)? And then how do I get it to take the information from that row and place it into the right textboxes?
Thanks,
Sean
I'm currently designing a check-in program for my organization what will do three things:
1. The user will put their ID# into a form and click "submit"
2. VBA code places the ID number in the first available cell of the first available row on Worksheet1. The next 6 cells in that row run Vlookups to access data from the master participant sheet (Worksheet2)
3. VBA code runs an IF statement to see if the participant raised enough money, and then opens either an Accepted or Denied form
What I want to do is have the textboxes on the Accepted form display the information from the 6 vlookup cells (ie, have all that information put FROM the cell TO the textboxes on the form).
This is a snippet of the code I have for the first portion of the process, which places the number from the textbox into the first available row:
Private Sub Submit_Click()
Dim iRow As Long
Dim ws As Worksheet
Set ws = Worksheets("SignIn")
'find first empty row in database
iRow = ws.Cells(Rows.Count, 1) _
.End(xlUp).Offset(1, 0).Row
Can I somehow manipulate this to have it find the last filled row (maybe by making the 1 a -1)? And then how do I get it to take the information from that row and place it into the right textboxes?
Thanks,
Sean