gpt4 book ai didi

excel - 使用 Excel VBA 调整列表框以显示长于列表框宽度的字符串

转载 作者:行者123 更新时间:2023-12-04 22:28:45 32 4
gpt4 key购买 nike

在我的列表框中,字符串比列表框的宽度长。

由于表面设计已经完成,我无法更改列表框宽度:

enter image description here

列表框是否有 VBA 属性:

break the string in half and display it on more than one line



或者

scroll horizontally, to see the whole string



如果没有那种属性(property),我想知道其他想法。

最佳答案

ListBox 仅为单行,不支持换行符。

如果它是 ActiveX,那么它有一个名为 ColumnWidths 的属性。 .将其设置为更大的值,例如 500你会在 ListBox 的底部看到一个滚动条。

关于excel - 使用 Excel VBA 调整列表框以显示长于列表框宽度的字符串,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55224743/

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