I have an issue with VBA, I am trying to loop into a date range with a monthly step but i'm struggling at the "monthly step" part.
Actually i am able to get this output:
13/08/2021
14/08/2021
15/08/2021
16/08/2021
17/08/2021
18/08/2021
And what I am trying to get is more like:
08/2021
09/2021
10/2021
11/2021
12/2021
01/2022
Here is my code:
aIndex = 1
For Each Cell In Range("F2", Range("F2").End(xlDown))
aIndex = aIndex + 1
For J = Range("D" & aIndex) To Cell
Debug.Print J
Next J
Next Cell
The "F" and "D" column simply contains dates with format "DD/MM/YYYY" and I'm looping between "D" and "F" date.
Thanks in advance,
Nicolas.