Patriot2879
Well-known Member
- Joined
- Feb 1, 2018
- Messages
- 1,259
- Office Version
- 2010
- Platform
- Windows
Hi, good afternoon, just wondering, I have the code below which at the moment copies all data from one sheet to another, but is there any way to collate data which shows a specific word in rows H? for example the word Issues'? so if issues show in row H can it copy all the data in that range and down?
Code:
Private Sub CommandButton6_Click()
Dim x As Workbook
Dim y As Workbook
Set x = ThisWorkbook
Set y = Workbooks.Open("G:ISSUES test DO NOT USE.xlsx")
With x.Sheets("Handover")
.Range("H5:Q" & .Range("H:Q").Find("*", , xlValues, , xlByRows, xlPrevious).Row).Copy y.Sheets("Issued").Range("A2")
End With
End Sub