How can I add leading zeroes to a number? For example:
Dim stracctnumber as String
stracctnumber = 987654321
If stracctnumber
is less than 15 characters, then add leading zeroes to the account number.
The final number should be
stracctnumber = "000000987654321"
Can anyone help me?
stracctnumber = Format(stracctnumber, String(15, "0"))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With