I\'m trying to pad a string with 0\'s to the left.The length of the output string should be 7. Here\'s my code :
inputstr = \"38\" in = string(7 - Len(input
in is a reserved word so can't be used as a variable name and you must pass a string "0" not an integer 0, so:
in
"0"
0
inputStr = "38" result = string(7 - Len(inputStr), "0") & inputStr msgbox result