gpt4 book ai didi

vba - 在具有多列的列表框中添加项目

转载 作者:行者123 更新时间:2023-12-02 00:07:12 25 4
gpt4 key购买 nike

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

最佳答案

通过使用List 属性。

ListBox1.AddItem "foo"
ListBox1.List(ListBox1.ListCount - 1, 1) = "bar"

关于vba - 在具有多列的列表框中添加项目,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6973287/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com