Hi.
NextBook is a variable that contains the full path to a file that I want to search.
e.g. NextBook = "C:\\........\MyFile.xls"
I want to search a series of files for a number (WkNo) and then put the data from an adjecent cell into another file.
NextBook's value is found by using the...
Thanks for your help. Can you tell me why this code doesn't work?
If Nextbook.Worksheets("Rework").Cells(x, y) = WkNo Then
ThisWorkbook.Worksheets("Sheet1").Cells(PrRow, 7) = WkNo
End If
It calls up "Error 424 Object required", but I thought that "NextBook.Worksheets" were the objects.
Thanks.
I am trying to write a macro to :
1. search a series of workbooks for a particular value on a particular worksheet (called "Rework") using a For-Next loop.
2. take the value of an adjecent cell and place it in a particular cell in a "master" workbook.
I can find and open each workbook, but how...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.