Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi everyone !

i am trying to implement something like follows:
VB
.Maxlength = "16"

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

VB
Dim oTextSA As CommandBarControl

Set oTextSA = oGrp.Controls.Add(msoControlEdit)
        With oTextSA
        oTextSA.Visible = True
           oTextSA.Caption = "MyTextBox"
           .OnAction = "ExportTextToCSV"
End With
Posted
Updated 6-Mar-14 10:53am
v2

1 solution

CommandbarControl[^] does not have this kind of functionality. Please, follow the link to see the list of available properties.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900