HANSEMINATOR
New Member
- Joined
- Nov 10, 2013
- Messages
- 6
Using the advancedfilter I find rows in my data which have certain criteria.
I'd like to make a calculation where i subtract to cells in each of and sum the result.
Using the code below creates a loop which runs through all visible cells in all rows. I only need to run through each visible row once.
It is probably some easy thing, I can't see...
Regards
Hans
I'd like to make a calculation where i subtract to cells in each of and sum the result.
Using the code below creates a loop which runs through all visible cells in all rows. I only need to run through each visible row once.
It is probably some easy thing, I can't see...
Code:
For Each rng In filrng.Rows.SpecialCells(xlCellTypeVisible)
//Code substracting one cell from another while adding it to a sum
Next rng
Regards
Hans