Gerry, you're right I want the code to read in the first line of each section that has the line like "Note for Sofia Kogan on 5/10/2010" but with a different date for every section. Then change it to following format "Sofia_Kogan_Note_5_10_2010" and then save the file as the PDF with the newly formated file name. Here is the sample of the file i'm working with.