Sub listwbnames()
With ActiveWorkbook
dim I as long
For i = 1 To .Names.Count
Cells(i, 1) = .Names(i).Name
Next i
End With
End Sub



Don Guillett
SalesAid Software
dguille...@gmail.com
-----Original Message----- From: bpascal123
Sent: Sunday, November 27, 2011 2:45 PM
To: MS EXCEL AND VBA MACROS
Subject: $$Excel-Macros$$ Re: List range names as well as offset names and their reference in the worksheet

This below almost works, however there are duplicates. But it works.

Option Explicit

Sub Macro1()

  'Excel to pick up named values

 Application.ScreenUpdating = False
 Application.Calculation = xlCalculationManual

 Dim wb As Workbook
 Dim ws As Worksheet
 Set wb = ThisWorkbook
 Set ws = wb.Worksheets("Range_Names")
 Dim nm As Name

 Dim i As Integer
 i = 1

 For Each nm In ThisWorkbook.Names
   ws.Cells(i, 1).ListNames
   i = i + 1
 Next nm

 Application.ScreenUpdating = True
 Application.Calculation = xlCalculationAutomatic

End Sub

Maybe there is a better solution...

--
FORUM RULES (934+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited.

NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com
--
FORUM RULES (934+ members already BANNED for violation)

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.

2) Don't post a question in the thread of another member.

3) Don't post questions regarding breaking or bypassing any security measure.

4) Acknowledge the responses you receive, good or bad.

5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited.
NOTE  : Don't ever post personal or confidential data in a workbook. Forum 
owners and members are not responsible for any loss.

------------------------------------------------------------------------------------------------------
To post to this group, send email to excel-macros@googlegroups.com

Reply via email to