Propriedade ListBox.TextColumn (Script Forms do Outlook)
Returns or sets a Variant that identifies the column in a ListBox to display to the user. Leitura/gravação.
Sintaxe
expressão. Coluna de Texto
expressão Uma variável que representa um objeto ListBox.
Comentários
Values for the TextColumn property range from -1 to the number of columns in the list. The TextColumn value for the first column is 1, the value of the second column is 2, and so on. Setting TextColumn to 0 displays the ListIndex values. Setting TextColumn to -1 displays the first column that has a ColumnWidths value greater than 0.
When the user selects a row from a ComboBox or ListBox, the column referenced by TextColumn is stored in the Text property. For example, you could set up a multicolumn ListBox that contains the names of holidays in one column and dates for the holidays in a second column. To present the holiday names to users, specify the first column as the TextColumn. To store the dates of the holidays, specify the second column as the BoundColumn.
Quando a propriedade Text de uma Caixa de Combinação de Caixa de Combinação é alterada (por exemplo, quando um utilizador escreve uma entrada no controlo), o novo texto é comparado à coluna de dados especificada por TextColumn.
Suporte e comentários
Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.