H
Hilmar Demant
Hi,
i want to copy the formulas in a word table and paste them in a new row. The
cursor is in a cell of the table.
ArrayList lFormulas = new ArrayList();
for (int i=1; i< objRange.Application.Selection.Cells.Count+1; i++)
{
Word.Range ltmpRange = objRange.Application.Selection.Cells.Range;
if (ltmpRange.Fields.Count > 0)
{
lFormulas.Add(ltmpRange.Fields[1].Code.Text);
}
else
{
lFormulas.Add("");
}
....
The code obviously seems not to work, cause the selection-object contains
only one column.
How can i retrieve the current row of the table and loop through the
column-cells?
kind regards,
Hilmar
i want to copy the formulas in a word table and paste them in a new row. The
cursor is in a cell of the table.
ArrayList lFormulas = new ArrayList();
for (int i=1; i< objRange.Application.Selection.Cells.Count+1; i++)
{
Word.Range ltmpRange = objRange.Application.Selection.Cells.Range;
if (ltmpRange.Fields.Count > 0)
{
lFormulas.Add(ltmpRange.Fields[1].Code.Text);
}
else
{
lFormulas.Add("");
}
....
The code obviously seems not to work, cause the selection-object contains
only one column.
How can i retrieve the current row of the table and loop through the
column-cells?
kind regards,
Hilmar