Thanks all, especially klaus for the test code with a custom type - which I've used before with no problems. You've confirmed what I thought so I'll look for another source of the problem - code has 6K+ lines and 10s of subs so it'll be in there somewhere..