Hi there,
I have a workbook with various worksheets. On specific worksheets there is a table where I add issues with equipment, with the date issue arose and a rectified date when resolved. I now have a search worksheet where i want to find any un-rectified issues across all the tables on the different worksheets. The code i have written so far finds un-rectified issues on one worksheet and brings it to the search sheet. My problem is how to make it loop through the other worksheets and do the same check.
Here is my code so far;
Sub search_button1_click()
Dim r As Integer
'Finds last row of data
r = 30000
Do Until Sheet11.Cells(r, 4).Value <> ""
r = r - 1
Loop
r = r + 1
' Puts data onto sheet
Sheet48.Cells(r, 1) = Sheet11.Cells(r, 1).Value
Sheet48.Cells(r, 2) = Sheet11.Cells(r, 2).Value
Sheet48.Cells(r, 3) = Sheet11.Cells(r, 3).Value
Sheet48.Cells(r, 4) = Sheet11.Cells(r, 4).Value
End Sub
Bookmarks