Rob
Forum Moderator

If you add some message lines into the UDF are they triggered? You need to figure out if the UDF is doing something unexpected re the maths or if it's not working at all.