Look into the Space function. Basically you want to add however many spaces to the end of your string that you need.
This Pad function should be useful
Code:
function Pad(myString, desiredLength)
Pad = myString + Space(desiredLength - Len(myString)
end function
The function is untested but it should be pretty close and give you enough to work on.