I have worksheets in rootfolder as well as in subfolders within the rootfolder. Iam using the foreach statement to access the worksheets in the rootfolder and do operations on them. But when i use the foreach statement it is also considering the worksheets within the subfolders also. I dont want this to happen. How should i tackle this. Please help....