V
Vincent Boris Arnold
I want to cycle through the rows of a Word table in order
to change the font characteristics of the cells. There is
a separate font change I want to do for the first
(heading) row of the table. The statements I've coded are
below. When I execute this code, I get a "Type mismatch"
(Run-time error '13') message on the second statement.
For Each vRow In vSysInterfaceTable.Rows
For Each vCell In vSysInterfaceTable.Rows(vRow).Cells
vCell.Select
Selection.Font.Size = 9
If vRow = 1 Then
Selection.Font.SmallCaps = True
End If
Next vCell
Next vRow
to change the font characteristics of the cells. There is
a separate font change I want to do for the first
(heading) row of the table. The statements I've coded are
below. When I execute this code, I get a "Type mismatch"
(Run-time error '13') message on the second statement.
For Each vRow In vSysInterfaceTable.Rows
For Each vCell In vSysInterfaceTable.Rows(vRow).Cells
vCell.Select
Selection.Font.Size = 9
If vRow = 1 Then
Selection.Font.SmallCaps = True
End If
Next vCell
Next vRow