I am very bad, I don't sit down and do flow charts, I rely on my dwindling brain. However as I fumble along with code I find I end up with lots of duplicated code which I could condense into routines. After I realise my dilemma, I spend hours running through code doing searches on commonalities and grouping things up, only to then generate bugs man made. Is there any magic way to alieviate the problem. As I say I am the one to blame. Thanks