Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello:
I'm using Excel 2003. I have a workbook (utility.xls) which I use to extract data from other workbooks. Currently, I have the code written in the utility which forces the name of the other workbook to be named something specific. In this case, "Cost Data.xls": Dim UTIL, COST as Object Set UTIL = Workbooks(ActiveWorkbook.Name).Sheets("Sheet1") Set UTIL = Workbooks("Cost Data.xls").Sheets("Sheet1") {and so forth} UTIL is intended to extract data from several workbooks, but right now I can only do them one at a time and I have to name each one "Cost data.xls" before doing the extraction. HERE IS MY QUESTION: Is there a way to get Excel to recognize all of the open workbooks by their names (say I want to do five at a time) without renaming them and having to specify a name(s) in my code? Thanks in advance. MARTY |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
trying to get sheet 1 to recognize and move student names to pg 2 | Excel Worksheet Functions | |||
workbooks names used | Excel Discussion (Misc queries) | |||
Workbooks with variable names | Excel Programming | |||
Open workbooks with different names | Excel Programming | |||
VB Editor doesn't "recognize" open workbooks | Excel Programming |