I am trying to loop through a set of files which are in sets. With each set i want to update a value in the file to the same new value.
Problem is in how to check when the first member of a new fileset is being read and to alter the value for the new set and then do the same for each new set encountered.
The file sets are identifiable by the Left(filename,6) function. So when this changes it is a new set.
So problem is how to read and store the first fileset identifier and then to loop, do the changes, detect the new filename and input the new value to that set.
It looked easy but when storing the initial filename in the loop and comparing it to the next one it overwrites the stored variable.
There must be an easy way round it but i am stuck!
Thanks
Neil
Bookmarks