Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
wbl wbl is offline
external usenet poster
 
Posts: 1
Default Workbooks in multiple running Excel applications

Hi,

How can i list in VBA all open workbooks in multiple running
applications ?

I want to list them in a listbox, and activate a workbook by clicking
the name in de listbox.

Thanks,

wbl


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Workbooks in multiple running Excel applications

I believe you would have difficulty doing it outside the existing instance
of Excel, but your terminology may be imprecise and you are only talking
about the current instance. For a single instance of Excel:

for each bk in Application.workbooks
Userform1.Listbox1.AddItem bk.name
Next

--------------------

workbooks(Userform1.Listbox1.Value).Activate

--------------------

--
Regards,
Tom Ogilvy

"wbl " wrote in message
...
Hi,

How can i list in VBA all open workbooks in multiple running
applications ?

I want to list them in a listbox, and activate a workbook by clicking
the name in de listbox.

Thanks,

wbl


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Workbooks in multiple running Excel applications

The problem is that I want to do it outside the existing instance !

The problem is to change between running Excel applications.

Regards,
Wbl


---
Message posted from http://www.ExcelForum.com/

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Workbooks in multiple running Excel applications

To get a listing of workbooks open in additional instances of the Excel
application would require an automation link to the instance I believe. I
haven't seen any code or method to do this. You can enumerate windows and
identify processes, but I haven't seen any code that shows how to convert
this to an automation reference to the excel application in that instance.

--
Regards,
Tom Ogilvy


"wbl " wrote in message
...
The problem is that I want to do it outside the existing instance !

The problem is to change between running Excel applications.

Regards,
Wbl


---
Message posted from http://www.ExcelForum.com/



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
Multiple instances of Excel (Multiple workbooks) Shane Setting up and Configuration of Excel 3 November 13th 09 05:07 PM
Close all workbooks and keep excel running Scott Hutslar Excel Discussion (Misc queries) 5 June 25th 08 11:16 PM
can i have do a running total for workbooks in a seperate workbook des-sa[_2_] Excel Discussion (Misc queries) 1 May 13th 08 01:21 PM
Running macros with protect workbooks Duderino Excel Discussion (Misc queries) 1 April 18th 07 06:56 PM
Running other applications from Excel VB Mervyn Thomas[_3_] Excel Programming 0 September 8th 03 05:36 PM


All times are GMT +1. The time now is 11:33 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"