Dim wb As Workbook
For Each wb In Workbooks
Windows(wb.Name).Visible = True
Next
Windows(wb.book1).Visible = True
Windows(wb.book2).Visible = True
Windows(wb.book3).Visible = True
....
Next
End Sub
Rgds
Dim wb As Workbook
For Each wb In Workbooks
If wb.Name <> ThisWorkbook.Name Then wb.Close False
Next
If this post helps click Yes
---------------
Jacob Skaria
Private Sub Workbook_BeforeClose(Cancel As Boolean)
Dim wb As Workbook
For Each wb In Workbooks
If wb.Name <> ThisWorkbook.Name Then wb.Close False
Next
End Sub
If this post helps click Yes
---------------
Jacob Skaria
Dim wb As Workbook
For Each wb In Workbooks
Windows(wb.Name).Visible = True
if wb.Name <> thisworkbook.Name then
wb.Close False
end if
Next
p.s. I found said file was auto hide in window arrangement. I have to
release it, then all back to normal, rest files do not need this procedure.
Rgds