Forum Discussion
ColinYoung
Aug 11, 2023Copper Contributor
Compare, copy and paste from an external worksheet.
I'm trying to perform a search on an external worksheet then copy the lines with matching data to paste in the original worksheet. The code I've come up with is a bit of a mess as I've tried mult...
peiyezhu
Aug 11, 2023Bronze Contributor
Can you share your files with dummy datas and expected result?
ColinYoung
Aug 12, 2023Copper Contributor
peiyezhu I'm using a duplicate of live data some I don't have a dummy set I'm able to share. Everything seems to work until it hits the IF statement then it checks the parent workbook for the data rather than the external, target workbook. I've tried numerous methods to point the search to the target workbook but without success.
The aim is to enter a name in a search box in a form the parent workbook, search the target workbook for a match then return the row containing the data to a blank sheet on the parent workbook.