Guest User

Untitled

a guest
Jun 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. 'Source: Power programming VBA p86-87
  2.  
  3. Sub CloseInactive()
  4. Dim Book as Workbook
  5. For Each Book In Workbooks
  6. If Book.Name <> ActiveWorkbook.Name Then Book.Close
  7. Next Book
  8. End Sub
Add Comment
Please, Sign In to add comment