Also, will any of these help?
https://stackoverflow.com/questions/25070766/nested-for-loops-recursion
https://corysimon.github.io/articles/recursion/
https://www.vitoshacademy.com/vba-nested-loops-with-recursion/
etc...
https://duckduckgo.com/?q=nested+loops+by+recursive