ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Named range questions (https://www.excelbanter.com/excel-programming/299929-named-range-questions.html)

Tetsuya Oguma[_3_]

Named range questions
 
Hi all,

I am a bit ocnfused with Names property. Please answer the following short questions.
1. When to use local names and global names? I understand that If the same name is used for both locally and globally local name only exists.
2. I have a named range "test" on Sheet1, with its 'referto' of "=Sheet1!$A$1:$A$5", that I can see in Insert|Name|Define... from Menu Bar. Then, in standard module (not behind sheet or class module) I have the following code to select the range:
Range("test").Select

This give me an error of Run-tim error '1004': Select method of Range failed. I really want to know why!!! How can I select the range (or manipulate cells on the same sheet, to my point) if activesheet is not the sheet that has that range?


I am using Excel 2000 SR-1.
---
Tetsuya, Sydney, Australia


All times are GMT +1. The time now is 10:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com