Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default How to retrieve index of workbooks

Hi
I have 7 workbooks open at the same time. I use the master workbook to copy
one of each of the master worksheets into each of the other open workbooks.
How do I retrieve the index and not the name of each workbook? i.e.
workbook(2) and not workbook("test.xls").


Thanks for your help.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 119
Default How to retrieve index of workbooks

Hi,

If it helps, the indices will be in the order in which the workbooks are
opened.

regards,
Don

"Dale" wrote in message
...
Hi
I have 7 workbooks open at the same time. I use the master workbook to
copy one of each of the master worksheets into each of the other open
workbooks. How do I retrieve the index and not the name of each workbook?
i.e.
workbook(2) and not workbook("test.xls").


Thanks for your help.




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How to retrieve index of workbooks

Hi Dale

If you open the workbooks in code you could st an identifying object
variable for each, e.g.:

Set wb1 = Workbooks.Open("Book1")
Set wb2 = Workbooks.Open("Book2")

etc.

---
Regards,
Norman



"Dale" wrote in message
...
Hi
I have 7 workbooks open at the same time. I use the master workbook to
copy one of each of the master worksheets into each of the other open
workbooks. How do I retrieve the index and not the name of each workbook?
i.e.
workbook(2) and not workbook("test.xls").


Thanks for your help.




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
using 3 tables in one spreadsheet and utilising index formula to retrieve information Aaron Hodson \(Coversure\) Excel Worksheet Functions 2 November 5th 07 01:40 PM
Retrieve Row index number loren.pottinger Excel Discussion (Misc queries) 6 August 30th 06 08:07 PM
retrieve column index... Bob Bedford Excel Discussion (Misc queries) 1 May 1st 06 01:22 AM
Retrieve Data from closed workbooks - Ron de Bruin Ron de Bruin Excel Programming 0 September 20th 04 07:30 PM
Retrieve Data from closed workbooks - Ron de Bruin Myriam Excel Programming 0 September 20th 04 06:47 PM


All times are GMT +1. The time now is 11:48 PM.

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"