Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / July 2008

Tip: Looking for answers? Try searching our database.

Named Range Collection

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ExcelMonkey - 31 Jul 2008 18:01 GMT
Is there a named range collection in Excel?  Or would I have to create this
collection by looping through all the cells in the UsedRanage and testing to
see if each range had a name?

Thanks

EM
Chip Pearson - 31 Jul 2008 18:22 GMT
The Workbook.Names collection contains all the workbook-wide names. The
Worksheet.Names collection contains the sheet level names. E.g.,

Dim WS As Worksheet
Dim N As Name
For Each N In ThisWorkbook.Names
   Debug.Print N.Name, N.RefersTo
Next N
For Each WS In ThisWorkbook.Worksheets
   For Each N In WS.Names
       Debug.Print N.Name, N.RefersTo
   Next N
Next WS

Signature

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
   Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)

> Is there a named range collection in Excel?  Or would I have to create
> this
[quoted text clipped - 5 lines]
>
> EM
ExcelMonkey - 31 Jul 2008 22:21 GMT
Excellent.

Thanks

EM

> The Workbook.Names collection contains all the workbook-wide names. The
> Worksheet.Names collection contains the sheet level names. E.g.,
[quoted text clipped - 19 lines]
> >
> > EM
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.