Hey all,
I managed to write a working piece of code (see post 2), but it's quite amateurish.
Does anyone feel like reviewing my code or make it a lot more simple?
What the marcro does (see attachment):
1) Write down the name of the company (test value: A, B, C, D, E or F)
2) It sets 4 different filters and copy pastes each filtered result, but only if the filtered result > 0.
3) The position of the copy-pasted part is dynamic.
If the first filter has a result, the result should be copied to last row +2 (below the text) and if the second filter has a result, the result should be copied to a new lastrow +3 (thus below the first result).
If the first filter has no result it should not be copied and if the second filter has a result it should be copied to last row +2 (below the text) and the third filter should be copied to a new last row + 3 ( thus below the second result).
The different values show you what I mean.
Bookmarks