Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
more than 2 workbooks
Hello
I have a workbook which opens two more workbooks, making a total of 3. How can I reference a range on a the workbook that is neither the ActiveWorkbook or ThisWorkbook (ie the one the code is in. So far I've tried Workbooks "Holidays.xls" .sheet1.Range("d9") but get a syntax error. TIA |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
more than 2 workbooks
Hi Lisa
try Workbooks("Holidays.xls").Sheets("Sheet1").Range(" D9") Cheers JulieD "LiSa" wrote in message ... Hello I have a workbook which opens two more workbooks, making a total of 3. How can I reference a range on a the workbook that is neither the ActiveWorkbook or ThisWorkbook (ie the one the code is in. So far I've tried Workbooks "Holidays.xls" .sheet1.Range("d9") but get a syntax error. TIA |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
more than 2 workbooks
Lisa,
You're close. Try Workbooks("Holidays.xls").Worksheets("Sheet1").Ran ge("D9") -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "LiSa" wrote in message ... Hello I have a workbook which opens two more workbooks, making a total of 3. How can I reference a range on a the workbook that is neither the ActiveWorkbook or ThisWorkbook (ie the one the code is in. So far I've tried Workbooks "Holidays.xls" .sheet1.Range("d9") but get a syntax error. TIA |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Regular Workbooks vs. Binary Workbooks | Excel Discussion (Misc queries) | |||
Updating Workbooks from multiple links Workbooks | Excel Worksheet Functions | |||
Copy/ move selected data from workbooks to seperate worksheets or workbooks | Excel Worksheet Functions | |||
Display 2 formulas from source workbooks to destination workbooks | Excel Discussion (Misc queries) | |||
suddenly my excel workbooks are "shared workbooks" | Excel Discussion (Misc queries) |