Propriedades de altura, largura

A altura ou largura, em pontos, de um objeto.

Sintaxe

objeto. Altura [= Single ]
objeto. Largura [= Single ]

As sintaxes de propriedade Height e Width têm estas partes:

Sair Descrição
objeto Obrigatório. Um objeto válido.
Single Opcional. Uma expressão numérica especificando as dimensões de um objeto.

Comentários

The Height and Width properties are automatically updated when you move or size a control. Se você alterar o tamanho de um controle, a propriedade Height ou Width armazenará a nova altura ou largura e a propriedade OldHeight ou OldWidth armazenará a altura ou largura anteriores. If you specify a setting for the Left or Top property that is less than zero, that value will be used to calculate the height or width of the control, but a portion of the control will not be visible on the form.

If you move a control from one part of a form to another, the setting of Height or Width only changes if you size the control as you move it. The settings of the control's Left and Top properties will change to reflect the control's new position relative to the edges of the form that contains it.

The value assigned to Height or Width must be greater than or equal to zero. For most systems, the recommended range of values is from 0 to +32,767. Higher values may also work depending on your system configuration.

Confira também

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.