Couple of useful VBA snippes I have re-used more than once.