Good day everyone, I was hoping if someone can kindly come up with a VBA code to help ease my stress.
I have a specific folder in the directory "\\Fps1ids\hmkqc\Inspection_Test Sheet\QAF" and it contains countless number of excel spreadsheet files, where each of them have a unique identity code in its name. (6 digit number)
Now, I have a masterfile spreadsheet that contains all of these identity numbers and I want to search the file name by this number to return two specific fields in the selected file.
For example, the first file has all the codes to be used as keyword search prompt, and once the file with matching keyword has been found, return the cell value to column E and J.
The second attached is one of many similar looking files that will be searched through to find a match.
As you can see, the file name contains the 6 digit keyword code.
(i.e QAF 9584 801000-HK1574-84inch-0545 )
Basically, find the file with matching 6 digit number and return the cell value for DIE # and CURE TIME. (HK 1574 and 3.50 respectively and no unit measures) When performing this, you need to do this by string searching CURE TIME and DIE # and return the value by moving a few cells to the right.(This format will stay the same as well as the number of cells to the right you move). Also, every file contains 2 worksheets named TEMPLATE and REVISION LOG in a random order, you want the TEMPLATE worksheet.
One more thing, when returning the DIE # the entry can be in 2 formats( HK XXXX and HK xx/xx" ).
For the first scenario, return the full value( HK XXXX) for second, return (xx/xx) only.
Thank you very much and I'd really appreciate any help.
Bookmarks