Rather than reinvent the wheel, can anyone suggest code to create
combinations and permutations based on the number of elements
that need to be combined?
Sure, it's easy. But my first question is: why are you interested?
Perhaps the whole purpose is indeed for __you__ to "reinvent the
wheel". Is this a class assignment?
You just gave me my first real chuckle of the day and reinforced that you
never know in forums whether you a dealing with a ten year-old whiz kid or a
Nonagenarian.
I'm not quite at the latter yet. This is intended as a parting gesture at
work after thirty-five years. Some will appreciate it. Some will not. Its a
follow up to an Excel (self taught) project completed years ago. Some bright
spark invented some very narrow rules relating to the work processes this
tool helps design. This is intended only as Q&D tool to develop sample sets
that what can be done in a set number of 7-day weeks is finite and that the
constraints are too constrictive. There are only so many combinations that
can be considered.
I haven't been able to focus on Excel or Access for about five years. You
don't know how much VBA develops your thought processes until you suffer
rust and sludge from lack of use. I would once have worked through this as a
self-disciplined learning exercise but, I now have 73 working days remaining
and incredible pressure to pass on a vast array of experience and knowledge
unrelated to programming - before hand over to my replacement who is yet to
arrive can start.
One of life's lessons. You really appreciate how precious time is when you
have a finite amount of time to wrap up all those things you always wanted
to achieve. Could be worse. Might be dying <bg>
Oh! No. It's not a class assignment.