Good day all,
Please, I have a slight problem. I created a userform with 40 textboxes that submits its contents to sheet1. The userform generates a time stamp in a label (label2) using Format(Now(), "H:MM"). When I click the submit button upon filling the form, each filled textbox is submitted to Column 1 sheet1 alongside the time stamp in Column 2 sheet1. See code below
Dim Emptyrow As Long
Emptyrow = Worksheetfunction.CountA(Range(A:A)) + 1
Cell(Emptyrow, 1) = textbox1.Value
Cell(Emptyrow, 2) = label2.Value
Cell(Emptyrow + 1, 1) = textbox2.Value
Cell(Emptyrow + 1, 2) = label2.Value
Cell(Emptyrow + 2, 1) = textbox3.Value
Cell(Emptyrow + 2, 2) = label2.Value
Cell(Emptyrow + 3, 1) = textbox4.Value
Cell(Emptyrow + 3, 2) = label2.Value
Cell(Emptyrow + 4, 1) = textbox5.Value
Cell(Emptyrow + 4, 2) = label2.Value
.
.
.
.
Cell(Empty row + 39, 1) = textbox40.Value
Cell(Empty row + 39, 2) = label2.Value
All filled textboxes submitted at an instance will have the same time stamp in Column 2.
Please, I want a situation where I can recall all contents submitted to sheet1 back to the textboxes using the time stamp as my filter.
I would like to achieve this by placing a recall textbox at the top of the userform and then filling the desired time stamp as my search criteria to recall contents from Column 1 sheet1.
I know this is possible, but I don't know how to go about it. Thanks in advance.
Please, I have a slight problem. I created a userform with 40 textboxes that submits its contents to sheet1. The userform generates a time stamp in a label (label2) using Format(Now(), "H:MM"). When I click the submit button upon filling the form, each filled textbox is submitted to Column 1 sheet1 alongside the time stamp in Column 2 sheet1. See code below
Dim Emptyrow As Long
Emptyrow = Worksheetfunction.CountA(Range(A:A)) + 1
Cell(Emptyrow, 1) = textbox1.Value
Cell(Emptyrow, 2) = label2.Value
Cell(Emptyrow + 1, 1) = textbox2.Value
Cell(Emptyrow + 1, 2) = label2.Value
Cell(Emptyrow + 2, 1) = textbox3.Value
Cell(Emptyrow + 2, 2) = label2.Value
Cell(Emptyrow + 3, 1) = textbox4.Value
Cell(Emptyrow + 3, 2) = label2.Value
Cell(Emptyrow + 4, 1) = textbox5.Value
Cell(Emptyrow + 4, 2) = label2.Value
.
.
.
.
Cell(Empty row + 39, 1) = textbox40.Value
Cell(Empty row + 39, 2) = label2.Value
All filled textboxes submitted at an instance will have the same time stamp in Column 2.
Please, I want a situation where I can recall all contents submitted to sheet1 back to the textboxes using the time stamp as my filter.
I would like to achieve this by placing a recall textbox at the top of the userform and then filling the desired time stamp as my search criteria to recall contents from Column 1 sheet1.
I know this is possible, but I don't know how to go about it. Thanks in advance.