• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

How to Extract Name Ranges To Excel Sheet

Istiyak

Member
Hi,,,..


i m having atleast 40-50 name ranges in my workbook.


it is very long process to copy and paste name ranges in sheet for reference.


Can i know is these possible to Extract Name Ranges To Excel Sheet.??


Regards

!$T!
 
Here you go....

[pre]
Code:
Sub ExtractNames()
Dim cntr As Long

Sheets("Sheet2").Select
Cells.ClearContents
Range("A1").Select
cntr = 1
ActiveCell.Offset(0, 0) = "Name as defined"
ActiveCell.Offset(0, 1) = "Contnets of the defined name"

Do While cntr <= ActiveWorkbook.Names.Count
ActiveCell.Offset(cntr, 0) = ActiveWorkbook.Names(cntr).Name
ActiveCell.Offset(cntr, 1) = "'" & ActiveWorkbook.Names(cntr).RefersTo
cntr = cntr + 1
Loop
Columns.AutoFit
End Sub
[/pre]

HTH

~VijaySharma
 
Istiyak


You can also go to the Formulas Tab

Use in Formula

Paste Names

Paste List


That will create a list of all Named Formulas with there corresponding formulas in a Range with the current cell at the Upper Left corner
 
Back
Top