aharris2693
Programmer
I have built a form that asks the user for search criteria, and then which field to look under. After searching a sheet called "Projects", I want to display each record in a seperate sheet called "Report". My code is below.
Do Until (i > r)
If Range("Projects!A" & i & ""
= Int(txtSearch) Then
Range("Report!A" & b & ":E" & b & ""
=Range ("Projects!A" & i & ":E" & i & ""
b = b + 1
End If
i = i + 1
Loop
r is my last used row.
i is the last row searched
b is the last row filled in "Report"
I know that my search is working because I can display all of my information in a msgBox, but it will not display in the seperate sheet.
Do Until (i > r)
If Range("Projects!A" & i & ""
Range("Report!A" & b & ":E" & b & ""
b = b + 1
End If
i = i + 1
Loop
r is my last used row.
i is the last row searched
b is the last row filled in "Report"
I know that my search is working because I can display all of my information in a msgBox, but it will not display in the seperate sheet.