Hi All
I'm new to this forum. I've been slowly learning Excel VBA for a few months and I need some help.
I just grabbed the following piece of code on the Internet in order to remove a blank row that keeps appearing at the bottom of a listbox that I created:
For i = ListBox1.Items.Count - 1 To 0 Step -1
If String.IsNullOrEmpty(CStr(ListBox1.Items(i))) Then
ListBox1.Items.RemoveAt(i)
End If
Next
But it does not work. There seams to be some syntax error(not sure).
I'm looking for something short and simple.
Any suggestion?
Thank you
Paul
[/CODE]
