If you are using EXCEL, the following macro will print the names of all the sheets in your workbook (starting from cell A1 down) ...
----------------------------------------------
Sub y_1()
'Macro 1/28/2007 by Yogi Anand
For i = 1 To ThisWorkbook.Sheets.Count
Cells(i, 1) = Sheets(i).Name
Next i
End Sub
----------------------------------------------
I realize that you want to print more than just the names of the sheets in a workbook, but this should get you started.
Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
ANAND Enterprises LLC
An old DOSman. Was gonna be my suggestion as well. Used to use that a lot back in the day - especially when you have to work with the output in a script or something.