Wow cuchuflito, thanks for that! This code is so clean compared to the mess i wrote. With a slight modification does exactly what i want!