You are on page 1of 1

For x = 0 To ListBox1.

ListCount - 1
ListBox1.List(x, 2) = Space(20 - 2 * Len(ListBox1.List(x, 2))) &
ListBox1.List(x, 2)
Next

*****************************

Function xFormat(ByVal s, ByVal width As String) As String

Dim temp As String


Dim deltaL As Integer

deltaL = Len(width) - Len(s)


If deltaL > 0 Then
temp = Space(deltaL) & s
Else
temp = s
End If
xFormat = temp
End Function

*********************************

You might also like