http://assess-spss.co.uk/Tips/macrolibs.html