Re: Search From A File
1) The CD images will be stored in one file - lets call it "IMFILE". OK sounds great to me, from this point forward I’ll refer to it that way.
2) The IMFILE will contain a list of names that correspond to the voucher number in column A of your Excel file. Yes, close. IMFLIE contains files which are named in the following format, XXXXXXXXXX-yyyyyy. The XXXXXXXXXX first 10 digits (x’s) are the same digits which will be in column A.
3) The IMFILE will NOT contain anything else but a list of names. The IMFILE will contain a is a file of Images named by voucher number. As you stated in ‘1)’ “The CD images will be stored in one file’.
4) You want to search the IMFILE for voucher numbers that appear in your Excel file. Yes, I need to find the files which correspond with the records stored in the spreadsheets column A.
5) You want to do something if there is a match. Yes, I want to copy the image files which match into another file which will contain only the files which were found to match up with a record in Column A of the spreadsheet.
6) What kind of files will the IMFILE be? What is the layout of the IMFILE? The files are within a windows folder and are all .TIF type image files.
7) Where will the Voucher Numbers appear in the IMFILE? The IMFILE names are XXXXXXXXXX-yyyyyy (as discussed above) The first 10 digits XXXXXXXXXX match the spreadsheet column A voucher names which are being searched for.
What happens after you find a match? With a match found they should be copied into a new location so that I can print the entire location.