Skip to content

Instantly share code, notes, and snippets.

@aptavout
Created May 24, 2013 03:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save aptavout/5641094 to your computer and use it in GitHub Desktop.
Iterate across open workbooks in Excel VBA
For Each wb In Workbooks
wb.Activate
Debug.Print ActiveWorkbook.Name
wb.Close
Next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment