Hi
I have table in a word file that contains 2 columns. What i am trying to do is search through the second column for blank cells and if found copy the text from the adjoining cell that is in the first column to the blank cell.
I found some code for searching blank cells but i need help on copy the text from the adjoining cell to the blank cell.
I appreciate any help
Thanks
I have table in a word file that contains 2 columns. What i am trying to do is search through the second column for blank cells and if found copy the text from the adjoining cell that is in the first column to the blank cell.
I found some code for searching blank cells but i need help on copy the text from the adjoining cell to the blank cell.
Code:
Dim oCell As Word.Cell
With Selection
If .Information(wdWithInTable) Then
For Each oCell In .Tables(1).Range.Cells
' copy the text from the adjoining cell to the blank cell
End If
Next
End If
End With
Thanks