LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default Looping through range names

I saw the following from an earlier post:

Dim nm As Name
For Each nm In ThisWorkbook.Worksheets(5).Names
MsgBox nm.Name
Next nm

This is what I would like to do - loop through all the ranges on a given
page, and then do something.

However, the above does not seem to work. It only show the "Print Area"
range, then the for next statement quits.

Any thoughts as to why it doesn't show ALL the ranges on Worksheet(5),
because there are about 50 of them on my spreadsheet.

Thanks for all help.
--
Craig
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
converting email address names in a range of cells to real names John Excel Worksheet Functions 1 May 19th 10 03:44 PM
Looping to create Variable Names? Jill E Excel Programming 3 August 10th 04 12:17 AM
Looping Through Names Bob Phillips[_7_] Excel Programming 0 July 27th 04 06:30 PM
Looping Through Names Tom Ogilvy Excel Programming 0 July 27th 04 06:20 PM
looping through a range Jo[_6_] Excel Programming 1 October 21st 03 11:11 PM


All times are GMT +1. The time now is 01:02 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"