Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default List Open Workbooks in a combobox


I am looking to create a combobox that has a list of every currently
open workbook in excel. what property would I need to pull to do
this? Would I need to use an array?

Thanks,
Jason


--
JasonSelf
------------------------------------------------------------------------
JasonSelf's Profile: http://www.excelforum.com/member.php...fo&userid=5330
View this thread: http://www.excelforum.com/showthread...hreadid=467950

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default List Open Workbooks in a combobox

You can loop through the selection and add them to the combobox

Dim wb As Workbook
For Each wb In Application.Workbooks
MsgBox wb.Name
Next wb


--
Regards Ron de Bruin
http://www.rondebruin.nl


"JasonSelf" wrote in message
...

I am looking to create a combobox that has a list of every currently
open workbook in excel. what property would I need to pull to do
this? Would I need to use an array?

Thanks,
Jason


--
JasonSelf
------------------------------------------------------------------------
JasonSelf's Profile: http://www.excelforum.com/member.php...fo&userid=5330
View this thread: http://www.excelforum.com/showthread...hreadid=467950



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default List Open Workbooks in a combobox

something like this
or maybe for each window in windows
try recording a macro and just select different workbooks and see what the
code turns up then use it as below

dim wb as workbook
for each wb in workbooks
combobox.item.add wb.name
next

"JasonSelf" wrote:


I am looking to create a combobox that has a list of every currently
open workbook in excel. what property would I need to pull to do
this? Would I need to use an array?

Thanks,
Jason


--
JasonSelf
------------------------------------------------------------------------
JasonSelf's Profile: http://www.excelforum.com/member.php...fo&userid=5330
View this thread: http://www.excelforum.com/showthread...hreadid=467950


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
Userform, ComboBox, and Workbooks... Oh my!? fail2excel Excel Discussion (Misc queries) 3 July 31st 09 09:22 PM
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
Dialog Box List of Current Open Workbooks Frank & Pam Hayes Excel Programming 2 January 25th 04 02:28 PM
Getting list of open workbooks [email protected] Excel Programming 7 November 26th 03 09:09 PM
List Open Workbooks in VBA Chip Pearson Excel Programming 1 November 17th 03 05:21 PM


All times are GMT +1. The time now is 03:51 AM.

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

About Us

"It's about Microsoft Excel"