Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEAThis was really rough for me. I'll need to do this again to understand why it works the way it does better. I need more macro practice and will be doing that through my company soon.
This is too tough for me now...... Can anyone explain to me how this loops? How are the conditions for loop termination reflected?
Excellent iterative macro question! solution attatched
My first solution was pretty dumb why I don't hide it with a spoiler. I hard coded the solution by taking advantage of the fact that the employees was ordered in management hierarchy in the input file. By adding a Record id it is possible to find the difference of the employee record ID with any potential manager record ID:
I did not have experience with macros so i watched some youtube videos on how to use iterations in macros and came up with this:
I found a solution without using a macro.
got to learn the use of iterative macro