使用多列添加列表框中的项目

And*_*Ion 7 excel vba excel-vba

如何在列表中添加项目2 columns?如果我使用它,它会在第一列中添加项目ListBox.AddItem.我也想添加项目2nd column.谢谢!

GSe*_*erg 22

通过使用该List属性.

ListBox1.AddItem "foo"
ListBox1.List(ListBox1.ListCount - 1, 1) = "bar"
Run Code Online (Sandbox Code Playgroud)