Scope of range names

D

David Cawlfield

I want to be able to change the scope of a name from global to local, so that
I can create new ranges on other sheets in the same workbook with the same
name. How can I manage the scope of named ranges inside excel?
 
T

Tom Ogilvy

Sub MakeLocal()
Dim sName As String
Dim rng As Range
sName = "NameRange1"
Set rng = ThisWorkbook.Names(sName).RefersToRange
ThisWorkbook.Names(sName).Delete
rng.Parent.Names.Add Name:=sName, RefersTo:= _
rng.Address(1, 1, xlA1, True)
End Sub
 
P

Printing of Range Name References

Is it possible to print the range names, other than doing a print screen?
 
D

Dave Peterson

That name manager can dump all the names to a new worksheet.

You can print that worksheet if you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top