S
SteveM
This seems pretty trivial but it's not clear to me how to do refer to
range object in an external source.
I want to access and use a named Range in a second workbook. I'm
thinking that I can declare a Range variable in my ActiveWorkbook and
set that equal to the external range. So:
Say the primary Workbook is Model.xls and the one I want to access is
Data.xls, and the Data named Range is DRange
So in a Model module
Sub Something()
Dim rng as Range
Set rng = Workbooks("Data.xls")...Range("DRange")
But I don't know how to finish the line.
I know I'm not asking for clever, only mundane. But if you could help
that would be great.
Thanks,
SteveM
range object in an external source.
I want to access and use a named Range in a second workbook. I'm
thinking that I can declare a Range variable in my ActiveWorkbook and
set that equal to the external range. So:
Say the primary Workbook is Model.xls and the one I want to access is
Data.xls, and the Data named Range is DRange
So in a Model module
Sub Something()
Dim rng as Range
Set rng = Workbooks("Data.xls")...Range("DRange")
But I don't know how to finish the line.
I know I'm not asking for clever, only mundane. But if you could help
that would be great.
Thanks,
SteveM