Has anyone a solution for my problem? I want to fill a binary-string with zeros, until the string has a length from 24 chars. It runs fine, as long as x isn't longer that 15 chars. I think, the problem is, that numberformat works only with double. I there another way or must I fill the string with for-next?