Thank a lot Dave,
your suggestion was just what i need, thanks again!!.
Hoping not to abuse of your time, Could you give me a hint on how to increase the number of columns in the ListBox. I used the code you send me:
Set rng = wks.AutoFilter.Range
>
>
> With rng
> Set rngF = .Resize(.Rows.Count - 1, 1).Offset(1, 0).Cells.SpecialCells(xlCellTypeVisible)
> End With
>
> With Sheets("Historia").ListBox1
> .ListFillRange = ""
> .Clear
> .ColumnCount = rng.Columns.Count
> For Each myCell In rngF.Cells
> .AddItem (myCell.Text)
> For iCtr = 1 To rng.Columns.Count - 1
> .List(.ListCount - 1, iCtr) = myCell.Offset(0, iCtr).Text
> Next iCtr
> Next myCell
> End With
> 1:
> Sheets("Historia").Select
> End Sub
But when I increase the number of columns with AutoFilter (instead of selecting 8 columns, i want to display 11 columns. The code works fine with less than 10 columns inclusive, but when i set 11 columns the code breaks in this line:
For iCtr = 1 To rng.Columns.Count - 1
.List(.ListCount - 1, iCtr) = myCell.Offset(0, iCtr).Text
Next iCtr
I discovered that for unbound list the limit is 10 columns, so in order to show more columns the listbox needs to be Bound, but that condition is contrary to the solution already suplied.
Could you give me a hand with this?
Thanks again
Best Regards
Jose Luis
Bookmarks