View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Jim Thomlinson[_4_] Jim Thomlinson[_4_] is offline
external usenet poster
 
Posts: 1,119
Default Get the name of all workbooks open from access

Sub Test()
Dim wbk As Excel.Workbook

For Each wbk In Excel.Workbooks
MsgBox wbk.Name
Next wbk

End Sub

The only note with this is that if the user has multiple instances of Excel
oen then it will only look at the active instance.
--
HTH...

Jim Thomlinson


"Xav" wrote:

I would like to create a routhine from access that get the Name of all
workbook open in my Windows session.