Hello all,
I have an issue with a List box. I want to show a selection cells and i have an issue. I select cells and i gave them a name (i can see it in name manager). I set in the RowSource and i set also on a button (see the bottom code) but when i press the button "show data" nothing is happening. If i set a range in my code "A50:R105" is working. If my named selection is "A50:B105" is also working (maybe because the columns are consecutive). But in my desire selection i remove some columns which i don`t want to show. Is there a possibility to show from my selection only rows where on column "O" is <> 0 ?
Thank you !
I have an issue with a List box. I want to show a selection cells and i have an issue. I select cells and i gave them a name (i can see it in name manager). I set in the RowSource and i set also on a button (see the bottom code) but when i press the button "show data" nothing is happening. If i set a range in my code "A50:R105" is working. If my named selection is "A50:B105" is also working (maybe because the columns are consecutive). But in my desire selection i remove some columns which i don`t want to show. Is there a possibility to show from my selection only rows where on column "O" is <> 0 ?
VBA Code:
Private Sub CommandButton1_Click()
ListBox1.ColumnCount = 13
ListBox1.RowSource = "Detalii"
End Sub
Thank you !