J
JohnJohn
Hello.
Many of you may find this question moronic. I'm OK with that.
I'm writing a macro in a Word document (using VBA - Visual Basic editor)
that grabs the text values from a particular column in a table, one row at a
time, performs a couple of actions on the text, and writes them to a text
file. So I access the Cells collection of the table and cycle through the
same cell on all rows of the table.
I need to convert the cell contents to a string (there aren't even any
numbers or anything), and for the life of me, can't figure out how. I get a
"type mismatch" error when I assign the contents to a string variable, or
when I try to perform any kind of string-related function on it (such as
CStr, Replace, etc).
Meanwhile, it's OK if I just do a MsgBox Tables(1).Cell(2, 3) for example.
But that's all I can do with it. I just need to stuff the contents of that
cell into a string.
What obvious little nugget of information am I missing here?
Thanks!
John
Many of you may find this question moronic. I'm OK with that.
I'm writing a macro in a Word document (using VBA - Visual Basic editor)
that grabs the text values from a particular column in a table, one row at a
time, performs a couple of actions on the text, and writes them to a text
file. So I access the Cells collection of the table and cycle through the
same cell on all rows of the table.
I need to convert the cell contents to a string (there aren't even any
numbers or anything), and for the life of me, can't figure out how. I get a
"type mismatch" error when I assign the contents to a string variable, or
when I try to perform any kind of string-related function on it (such as
CStr, Replace, etc).
Meanwhile, it's OK if I just do a MsgBox Tables(1).Cell(2, 3) for example.
But that's all I can do with it. I just need to stuff the contents of that
cell into a string.
What obvious little nugget of information am I missing here?
Thanks!
John