Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Get the name of all workbooks open from access

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
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.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Get the name of all workbooks open from access

This code works from and to the current Excel instance.
The fact is if I have more than one instance of Excel open I don't know
how to access those instances. I suppose the answer might be to use
GetObject? But does anybody know how to look up all the Excel instance.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Get the name of all workbooks open from access

I am affraid I can't help you there. I always keep things in one instance of
Excel. In my experience multiple instances is problematic at the best of
times...
--
HTH...

Jim Thomlinson


"Xav" wrote:

This code works from and to the current Excel instance.
The fact is if I have more than one instance of Excel open I don't know
how to access those instances. I suppose the answer might be to use
GetObject? But does anybody know how to look up all the Excel instance.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
When I open Excel, workbooks open automatically. How can I stop t Rhealbird Excel Discussion (Misc queries) 2 February 23rd 06 10:08 AM
Excel 2003 Workbooks.Open with CorruptLoad=xlRepairFile fails on Excel 5.0/95 file due to Chart, with Error 1004 Method 'Open' of object 'Workbooks' failed Frank Jones Excel Programming 2 June 15th 04 03:21 AM
Workbooks.Open doesn't open file in ThisWorkbook Tomu Excel Programming 0 May 7th 04 10:18 PM
Workbooks.Open closes other workbooks S. Daum Excel Programming 1 August 21st 03 07:47 PM
Workbooks.Open / .Open Text - How do you stop the .xls addition? Dave[_20_] Excel Programming 2 July 31st 03 04:03 AM


All times are GMT +1. The time now is 05:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"