Hi!
Have a look at
http://www.mrexcel.com/pc09.shtml
Be patient: there is what seems to me to be a generalised solution to
your question in there.
I've run Ioannis' routine and it works. What more can one say?
Alf
--
AlfD
------------------------------------------------------------------------
AlfD's Profile:
http://www.excelforum.com/member.php...fo&userid=4785
View this thread:
http://www.excelforum.com/showthread...hreadid=474156