All,
I am learning the range variable as an object, i.e.
dim example As Range
Ok, I have a spreadsheet with 100 rows and columns of info (*B:*AB for example). Each row has a "header" text in column A. I want to write a short subroutine that looks through "A" column, row by row, and for every row that matches the if statement, then it'll add that row to a range variable ("totalrows" for example). That way, I have a new range variable ("totalrows") in which I have a "For Each "Cell" in "range" for the macro to do it's function on.
For example of logic:
For each cell in Column A
If cell = desiredcell then
add the row of that cell to a range variable in which columns are_
already set from B:AB but I want to add that specific row (in the end_
I'll have a range variable with range: "10A:10AB, 14A:14AB,_
24A:24AB,...."
Else
exit If loop (back to "for each cell in Column A" loop)
For each cell in "newrange"
do rest of evaluation code for each cell, I already have this portion written
Does htat make sense?
I am learning the range variable as an object, i.e.
dim example As Range
Ok, I have a spreadsheet with 100 rows and columns of info (*B:*AB for example). Each row has a "header" text in column A. I want to write a short subroutine that looks through "A" column, row by row, and for every row that matches the if statement, then it'll add that row to a range variable ("totalrows" for example). That way, I have a new range variable ("totalrows") in which I have a "For Each "Cell" in "range" for the macro to do it's function on.
For example of logic:
For each cell in Column A
If cell = desiredcell then
add the row of that cell to a range variable in which columns are_
already set from B:AB but I want to add that specific row (in the end_
I'll have a range variable with range: "10A:10AB, 14A:14AB,_
24A:24AB,...."
Else
exit If loop (back to "for each cell in Column A" loop)
For each cell in "newrange"
do rest of evaluation code for each cell, I already have this portion written
Does htat make sense?