Propiedad Cell.Column (Word)

Devuelve un objeto Column que representa la columna de tabla que contiene la celda especificada. Solo lectura.

Sintaxis

expresión. Columna

expresión requerida. Variable que representa un objeto 'Cell'.

Ejemplo:

En este ejemplo se crea una tabla 3 x 5 y se aplica sombreado a las columnas con números pares.

Dim tableNew As Table 
Dim cellLoop As Cell 
 
Selection.Collapse Direction:=wdCollapseStart 
Set tableNew = _ 
 ActiveDocument.Tables.Add(Range:=Selection.Range, _ 
 NumRows:=3, NumColumns:=5) 
 
For Each cellLoop In tableNew.Rows(1).Cells 
 If cellLoop.ColumnIndex Mod 2 = 0 Then 
 cellLoop.Column.Shading.Texture = wdTexture10Percent 
 End If 
Next cellLoop

Consulte también

Cell (objeto)

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.