David C. Holley said:
Function setLength(strString As String, intLength As Integer)
If Len(strString) > intLength Then
setLength = Left(strString, intLength)
Else
setLength = strString & String(intLength - Len(strString), " ")
End If
End Function
Gives the flexibility if needed to establish varying lengths. If the
length of the String is longer than the length to convert to, the original
string will be truncated.