Originally Posted by
Charlize
This is an enhancement on the link I gave you. It will sort the columnheader named Client :[vba]Private Sub ListView1_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)
'If clicked on the columnheading named Client -> do the sorting
If ColumnHeader.Text = "Client" Then
Me.ListView1.Sorted = True
Me.ListView1.SortKey = 0
If Me.ListView1.SortOrder = lvwDescending Then
Me.ListView1.SortOrder = lvwAscending
Else
Me.ListView1.SortOrder = lvwDescending
End If
Else
Me.ListView1.Sorted = False
End If
End Sub[/vba]ps. Sorry I couldn't help with the converting to Project (but I don't know J *** S *** about Project).