我正在使用二维数组将数据加载到多列列表框中。
我想隐藏特定的列,但不知道如何做。我不能只排除数据 - 因为我希望将其作为隐藏列稍后引用 - 但我不希望用户看到它。
这是我目前的代码:
For x = 0 To UBound(ReturnArray, 2)
NISSLIST.ListBox1.Clear 'Make sure the Listbox is empty
NISSLIST.ListBox1.ColumnCount = UBound(ReturnArray, 1) 'Set the number of columns
'Fill the Listbox
NISSLIST.ListBox1.AddItem x 'Additem creates a new row
For y = 0 To UBound(ReturnArray, 1)
NISSLIST.ListBox1.LIST(x, y) = ReturnArray(y, x) 'List(x,y) X is the row number, Y the column number
If y = 3 Then 'Want to hide this column in listbox
NISSLIST.ListBox1.NOIDEA '<<< HELP HERE <<<, What do I put to hide this column of my multi-column listbox????
End If
Next y
Next x
Application.International(xlListSeparator)
将宽度值连接到列宽定义字符串中。我曾经有一些关于单元格验证和;
的不好的经历。 - DrMarbuse