M
mikenam
Hello everyone. I have several tables in a document and would like to
bold the rows that have text in the second column. If the second column
has numbers (ie 610-8444) then i don't want to bold the row.
This is my start. I am having trouble identifying the row and second
column to use it in a conditional statement.
Dim oTb As Table
'i is the second row of the table
'f is the last row of the table
Dim i As Integer
Dim f As Integer
Dim r As Integer
'do for each table
For Each oTb In ActiveDocument.Tables
'counts the number of rows
f = oTb.Rows.Count
'if there are 7 columns then format the table
If oTb.Columns.Count = 7 Then
'first row till last row
For i = 2 To f
If oTb.Rows(i).Columns(2).IsNumeric = False Then
End If
Next i
End If
Next
End Sub
Thanks
bold the rows that have text in the second column. If the second column
has numbers (ie 610-8444) then i don't want to bold the row.
This is my start. I am having trouble identifying the row and second
column to use it in a conditional statement.
Dim oTb As Table
'i is the second row of the table
'f is the last row of the table
Dim i As Integer
Dim f As Integer
Dim r As Integer
'do for each table
For Each oTb In ActiveDocument.Tables
'counts the number of rows
f = oTb.Rows.Count
'if there are 7 columns then format the table
If oTb.Columns.Count = 7 Then
'first row till last row
For i = 2 To f
If oTb.Rows(i).Columns(2).IsNumeric = False Then
End If
Next i
End If
Next
End Sub
Thanks