Hello All,
I'm constructing a planning file for work.
The idea would be to be able to insert a line of information based on the start date given at a userform.
As an example, a task can be added by using this form:
Then on the list highlighted in red, it should insert the line of information below the line which has the same start date or the start date which is earlier (but closest!) to the inserted start date.
To give an example below if the line which has to be inserted has a starting date of 23/03/2021 --> it has to be inserted just below line 10.
If the line which has to be inserted has a starting date of 17/04/2021 for example --> it has to be inserted just below line 11.
For me hardest part which I don't know really how to start, would be inserting the line at the right chronological place as mentioned above.
I would assume I would have to perform a loop, compare the difference between start date from line to be inserted with the dates in column G.
And where the difference would be the smallest or 0, I need to insert the line.
Filling the information afterwards based on userform I should be able to manage.
Hopefully someone can help me out with that first part...
Thanks in advance,
Sam
I'm constructing a planning file for work.
The idea would be to be able to insert a line of information based on the start date given at a userform.
As an example, a task can be added by using this form:
Then on the list highlighted in red, it should insert the line of information below the line which has the same start date or the start date which is earlier (but closest!) to the inserted start date.
To give an example below if the line which has to be inserted has a starting date of 23/03/2021 --> it has to be inserted just below line 10.
If the line which has to be inserted has a starting date of 17/04/2021 for example --> it has to be inserted just below line 11.
For me hardest part which I don't know really how to start, would be inserting the line at the right chronological place as mentioned above.
I would assume I would have to perform a loop, compare the difference between start date from line to be inserted with the dates in column G.
And where the difference would be the smallest or 0, I need to insert the line.
Filling the information afterwards based on userform I should be able to manage.
Hopefully someone can help me out with that first part...
Thanks in advance,
Sam