Code to list concurrently open workbooks
Try something like this:
Sub test()
Dim oWB As Workbook
Dim oAddin As AddIn
For Each oWB In Application.Workbooks
MsgBox oWB.Name
Next oWB
For Each oAddin In Application.AddIns
If oAddin.Installed Then
MsgBox oAddin.Name
End If
Next oAddin
End Sub
RBS
"DaveO" wrote in message
...
From the Excel menu you can click Windows and see a list of
concurrently open files. Is there VBA code to capture that list
programmatically?
For instance: to touch all the cells in a selection, the code is
For Each rCell in Selection.Cells
...snip
next rCell
Is there similar For Each code that will scroll through a list of open
workbooks?
Thanks,
Dave O
|