D
Drake
Hi. I am trying to write code that will look at the text in a particular
cell of a table.
So far, I have:
Set rcell = ActiveDocument.Tables(3).Cell(2, 4).range
if rcell.text = "test1"
msgbox "Answer1"
elseif rcell.text = "text2"
msgbox "Answer2"
end if
My problem is that it isn't seeing the text. If I do an Immediate on it, it
throws this symbol - on the next line. So it comes back with:
test1
Any thoughts?
cell of a table.
So far, I have:
Set rcell = ActiveDocument.Tables(3).Cell(2, 4).range
if rcell.text = "test1"
msgbox "Answer1"
elseif rcell.text = "text2"
msgbox "Answer2"
end if
My problem is that it isn't seeing the text. If I do an Immediate on it, it
throws this symbol - on the next line. So it comes back with:
test1
Any thoughts?