references to named cells

  • Thread starter Thread starter doug2500
  • Start date Start date
D

doug2500

I have an excel workbook with about 25 worksheets. Before I delete a named
cell, I would like to find where it is currently used. ANy suggestions?
Thanks.
 
First select a cell in an unused area in a worksheet and run:

Sub namer()
Set r = ActiveCell
For Each w In ActiveWorkbook.Names
r.Value = w.Name
r.Offset(0, 1).Value = w.RefersToRange.Address
Set r = r.Offset(1, 0)
Next
End Sub

This will produce a list of the names and associated ranges

Then, for each name, pull-down:

Edit > Find > {the name} > Find All

This will produce a list of where each name is used.
 

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

Back
Top