如何在VBA的PowerPoint中限制字符串的长度或CommandBarControl中的最大字符数? [英] how to restrict the length of string or maximum number of characters in CommandBarControl in PowerPoint in VBA?
本文介绍了如何在VBA的PowerPoint中限制字符串的长度或CommandBarControl中的最大字符数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好!
i我正在尝试实施以下内容:
hi everyone !
i am trying to implement something like follows:
.Maxlength = "16"
所以我可以限制用户将放在名为 oTextSA
的控件中的字符串长度。
这是我的代码
so that i can restrict the length of the string that the user will put inside the control named oTextSA
below.
Here's my code
Dim oTextSA As CommandBarControl
Set oTextSA = oGrp.Controls.Add(msoControlEdit)
With oTextSA
oTextSA.Visible = True
oTextSA.Caption = "MyTextBox"
.OnAction = "ExportTextToCSV"
End With
推荐答案
CommandbarControl [ ^ ]没有这种功能。请点击链接查看可用属性列表。
CommandbarControl[^] does not have this kind of functionality. Please, follow the link to see the list of available properties.
这篇关于如何在VBA的PowerPoint中限制字符串的长度或CommandBarControl中的最大字符数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文