Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default Iterate through the values in a named range?

How do I iterate through the values in a named range? In the code below 'nameChannels' is a named range in my file

Bria

Sub Extract_Paf_Forms(

myName = Array(nameChannels

For Each a In myNam
MsgBox (a
Next

End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,080
Default Iterate through the values in a named range?

Dim c As Range
For Each c In Range("nameChannels")
MsgBox c.Value
Next

--

Vasant

"Brian" wrote in message
...
How do I iterate through the values in a named range? In the code below

'nameChannels' is a named range in my file.

Brian

Sub Extract_Paf_Forms()

myName = Array(nameChannels)

For Each a In myName
MsgBox (a)
Next a

End Sub



Reply
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
Formula Based on Values in Named Range Q Seanie Excel Worksheet Functions 5 January 2nd 12 09:01 PM
Countif and values greater than zero for a named range Angela Excel Worksheet Functions 1 November 17th 09 04:32 PM
Sum values in columns based on values in named range Mikael Andersson Excel Worksheet Functions 10 November 12th 08 09:37 AM
Named range not continuous. How to display values? Fries Excel Worksheet Functions 4 May 29th 08 11:41 AM
Named range changes values Carole O Excel Discussion (Misc queries) 4 April 24th 07 07:49 PM


All times are GMT +1. The time now is 10:45 AM.

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

About Us

"It's about Microsoft Excel"