Hi aboo
I am a little unclear what you mean, or what you are trying to do, but this Sub will run code on each (visible) Workbook (file).
Code:
Sub UseAllVisibleWorkbooks()
Dim wdw As Window
For Each wdw In Windows
If wdw.Visible Then
With wdw
'CODE GOES HERE
MsgBox .Parent.Name
.ActiveSheet.Cells(4, 9) = "TESTCODE"
End With
End If
Next
End Sub
Is that somethink like what you want??
If not please expand!!
MTB