Hi,
This should be quite straight forward to do and now that you’ve suggested it I’m going to give it a go as it solves a lot of problems I have with SMAT files.
I’m away for a couple of days now but I’ll get back to this next week and if no one else has beaten me to it I’ll post my code for you Bob.
Regards
Garry