Ok it's not about the file extension (aka .txt) but just on the file name without its extension (aka Tom Gray) !
But that's not really matter as this name is already in the first line of the text file …
According to your attachment the place where must reside the result seems to be obvious
but when reading again your original post I may be confused :
Originally Posted by
gratedane8
I want the code to place the number it found in column C of the excel sheet IF column A contains "Tom Gray".
So if Tom Gray was found in A11, then the 2,140 would be placed in C11.
So whatever the text file if the name is found within column A so the result must always stand in column C of the same row
or maybe you had not very well explain your need ?
Bookmarks