keats88
asked on
More efficient code using "with class" and .Cells, .Range, etc.? Excel, VBA
I'm trying to find more efficient methods for iterating through multiple row values in multiple workbooks. I think this is best illustrated through some code:
Basically...I'm looking for a way to be able to start my "with" statement with data.Range and then back track into .Cells
...or find a different way to call a specific cell without the above .Cells(.Range1.Row, .Range2.Row) syntax, which is currently making my code extremely dense.
with data
If .Cells(.Range("custom_name").Row + i, .Range("custom_name").Column) > Date then
do something here
end if
end with
Basically...I'm looking for a way to be able to start my "with" statement with data.Range and then back track into .Cells
...or find a different way to call a specific cell without the above .Cells(.Range1.Row, .Range2.Row) syntax, which is currently making my code extremely dense.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Great information, thank you!
For each Cell in Data.Cells(Data.Range("cus
if Cell > Date then
do something
Next Cell
gowflow