LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
pp pp is offline
external usenet poster
 
Posts: 10
Default Looping thru values in a Range of Cells

Hi All

We have a requirement whereby we would like to loop-thru range of cells,
read the values from these cell range and then do certain action.
For example, we will define list of values in a column say C5:C25
......D5:D25; see example below
---------------------------
C D
---------------------------
5 AgentID 10
6 Agentname 25
7 Address 20
........

What we would like to do is
1. Read the Cells one by one starting [C5 and D5] , then [C6 and D6] and
then [C7 and D7]...
2. The value in C5 will be the Column in Pivot table
The value in D5 will be the Column Length for that column
3. Repeat the same (in-loop) for C6 and D6......... C25 and D25
4. The only catch is, the MAX range is un-predictable, it could be C5 - C10
for one report and C5-C15 for others.

Is this in any way achieveable? I know we can give some "Virtual Name" for
the cells of the excel, not sure if I can do that for range of Cells.

Thanks
Prasanna
 
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
Looping thru a range of cells COBOL Dinosaur New Users to Excel 9 June 2nd 07 03:41 AM
looping through an giving values to cells in vba DowningDevelopments Excel Discussion (Misc queries) 3 August 25th 06 12:39 AM
Looping through a range of cells rEN Excel Programming 4 June 10th 04 06:28 PM
Looping thru cells in a named range Michael Beckinsale Excel Programming 4 September 2nd 03 02:07 PM
looping cells though a named range Jo[_4_] Excel Programming 1 August 20th 03 12:32 AM


All times are GMT +1. The time now is 10:58 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"