toggle open files
I have this code to list the sheets in an active workbook:
Sub listSheets()
Dim x As Worksheet
For Each x In Application.Worksheets
ActiveCell.Value = x.Name
ActiveCell.Offset(1, 0).Activate
Next x
End Sub
.... but would like to list sheets in another open book without activating it.
Thanks in anticpation.
|