Named Ranges Problem

mutrus

Board Regular
Joined
Sep 10, 2002
Messages
80
How can I have a Named Range on one sheet to be the same on another sheet

e.g Sheet 1 Range A1:B3 is named TestRange

I need Sheet2 Range A1:B3 to have the same name 'TestRange'

Thanks for help
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Yes thanks - I may have not asked the question correctly but I found out that to do what I wanted I had to include the sheet name before each name

ie 'Sheet1'!TestRange as name, Refers to ='Sheet1'!$A$1:$B$3
and 'Sheet2'!TestRange as name, Refers to = 'Sheet2'!$A1$B3

Thanks for the reply
 
Upvote 0
"...I had to include the sheet name before each name "


No you don't - did you try the suggestion?
 
Upvote 0
I would strongly advise against using defined names using the !TestRange syntax.
Excel has a serious calculation bug with these types of name (always uses the active sheet) if calculate is called from VBA. They also crash excel97 if you try to trace dependents.

You can use =INDIRECT("TestRange") if you want a 'Universal' name.
 
Upvote 0
"Excel has a serious calculation bug with these types of name (always uses the active sheet) if calculate is called from VBA..."

Thanks Charles - hadn't come across that before.
 
Upvote 0
I appreciate all the replies and do not dispute the logic

Paddy - I tried your suggestion. I could not manange to get it to do what I wanted. I use the named ranges in a drop down menu so that the user can goto the same place on whatever the active sheet is.

If I do not use the name prefix then the range only appears to apply to the sheet that the name was defined on. By using the name prefix then it works. I do not use calculate so do not have the 'bug'
 
Upvote 0

Forum statistics

Threads
1,215,256
Messages
6,123,906
Members
449,132
Latest member
Rosie14

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top