H
Henry Stock
I have a grid I need to turn into a columnar list. I can't get the syntax
right.
Across the top are a list of items called controls. Down the left side are
items called risks. At the grid intersections are the letter P or D that
refer to a property of the controls. Controls are not necessarily
associated with every risk, so there also blank cells at some intersections.
I wanted to use nested for each loops, but I am not sure how to reference
the cells
for each i in controls
for each j in risks
'check the cell at the row column intersection of j,i
' if the cell is not blank then copy the risk and the control to a
columnar list. copy the value of cell(j,i) to a third column
' need to figure out how to increment the list rows
next
next
right.
Across the top are a list of items called controls. Down the left side are
items called risks. At the grid intersections are the letter P or D that
refer to a property of the controls. Controls are not necessarily
associated with every risk, so there also blank cells at some intersections.
I wanted to use nested for each loops, but I am not sure how to reference
the cells
for each i in controls
for each j in risks
'check the cell at the row column intersection of j,i
' if the cell is not blank then copy the risk and the control to a
columnar list. copy the value of cell(j,i) to a third column
' need to figure out how to increment the list rows
next
next