PC Review


Reply
Thread Tools Rate Thread

How Do I list all range names in a worksheet

 
 
=?Utf-8?B?UXVpZXRNYW4=?=
Guest
Posts: n/a
 
      28th Sep 2007
I have a spreadsheet with over 1,000 range names. 90% are not valid anymore
I woul like to list all the range names thes be able to have the vba code go
through this list and delet all the ones that I tag as non needed

thanks
--
Helping Is always a good thing
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      28th Sep 2007
I found this in VBA help files.
Sub nms()
Set nms = ActiveWorkbook.Names
Set wks = Worksheets(1)
For r = 1 To nms.Count
wks.Cells(r, 2).Value = nms(r).Name
wks.Cells(r, 3).Value = nms(r).RefersToRange.Address
Next
End Sub

"QuietMan" wrote:

> I have a spreadsheet with over 1,000 range names. 90% are not valid anymore
> I woul like to list all the range names thes be able to have the vba code go
> through this list and delet all the ones that I tag as non needed
>
> thanks
> --
> Helping Is always a good thing

 
Reply With Quote
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      28th Sep 2007
Get the (free) Name Manager:

http://www.jkp-ads.com/OfficeMarketPlaceNM-EN.asp
at jkp's Application Development Service

--
Regards,
Tom Ogilvy



"QuietMan" wrote:

> I have a spreadsheet with over 1,000 range names. 90% are not valid anymore
> I woul like to list all the range names thes be able to have the vba code go
> through this list and delet all the ones that I tag as non needed
>
> thanks
> --
> Helping Is always a good thing

 
Reply With Quote
 
=?Utf-8?B?UXVpZXRNYW4=?=
Guest
Posts: n/a
 
      28th Sep 2007
Thanks, good enough to get me started
--
Helping Is always a good thing


"JLGWhiz" wrote:

> I found this in VBA help files.
> Sub nms()
> Set nms = ActiveWorkbook.Names
> Set wks = Worksheets(1)
> For r = 1 To nms.Count
> wks.Cells(r, 2).Value = nms(r).Name
> wks.Cells(r, 3).Value = nms(r).RefersToRange.Address
> Next
> End Sub
>
> "QuietMan" wrote:
>
> > I have a spreadsheet with over 1,000 range names. 90% are not valid anymore
> > I woul like to list all the range names thes be able to have the vba code go
> > through this list and delet all the ones that I tag as non needed
> >
> > thanks
> > --
> > Helping Is always a good thing

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Consolidate by range names which represent worksheet tab names Wally Microsoft Excel Misc 4 14th Jul 2010 11:13 PM
macro to take worksheet names and create dynamic list/range =?Utf-8?B?bWFpaml1bGk=?= Microsoft Excel Programming 4 1st Aug 2007 08:56 PM
copy range on every worksheet (diff names) to a master worksheet (to be created) Bernie Microsoft Excel Programming 2 22nd Sep 2004 03:30 PM
copy range on every worksheet (diff names) to a master worksheet (to be created) Bernie Microsoft Excel Programming 0 22nd Sep 2004 03:26 PM
want all worksheet names as a list of names (text) on one workshee =?Utf-8?B?dmljdG9yeQ==?= Microsoft Excel Worksheet Functions 11 26th Aug 2004 07:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:33 AM.