I can't help with MSProject but with loops:
To loop thru files in a folderTo loop thru all open ProjectsDim PrjName As String PrjName = Dir(Path & "\*.prj") 'Path must be end with, or be followed by, a backslash. Do while PrjName <> "" 'PrjName includes the path 'do stuff 'Get next file name Prjname = Dir LoopDim Prj As Object For Each Prj in Ptojects If not Prj.Name = "Master Project" then 'do stuff End If Next Prj