@greg - yes mate, I understand that the number is negative because of vbObjectError's value - what I couldn't understand is that the help said that if you add 513 to vbObject error it will return error code 513 - although that would mean that vbObjectError would be zero. I think Rory's point about having to remove the vbObjectError to get the "real" error code makes sense though.
BTW, your comment about about the value being prettier in hex made me chuckle
Cheers
BTW, your comment about about the value being prettier in hex made me chuckle
Cheers