Kelvin Stott
Active Member
- Joined
- Oct 26, 2010
- Messages
- 338
Hello, I have 2 different versions of a workbook open, both contain the same named range and scope at workbook level. How do I distinguish between these and refer to the named range in one workbook or another?
Initially I thought I could use something like Workbook1.Range("MyNamedRange") vs Workbook2.Range("MyNamedRange"), but I realize that the range object does not link directly to a workbook object, and I would rather avoid doing this via a worksheet object, given that the ranges are scoped at workbook level.
Meanwhile it is not clear to me which workbook I would be referring to with just Range("MyNamedRange") and no workbook reference. Hmmm...
Initially I thought I could use something like Workbook1.Range("MyNamedRange") vs Workbook2.Range("MyNamedRange"), but I realize that the range object does not link directly to a workbook object, and I would rather avoid doing this via a worksheet object, given that the ranges are scoped at workbook level.
Meanwhile it is not clear to me which workbook I would be referring to with just Range("MyNamedRange") and no workbook reference. Hmmm...