try this
Code:
Dim wb as Workbook
Dim wbs as Workbooks
Set wbs = Application.Workbooks
For each wb in wbs
MsgBox wb.Name
Next wb
Your problem was that you were trying to loop through the workbooks in variable wbs before you had set it equal to anything.
HTH
Chris
There are two secrets to success in this world:
1. Never tell everything you know