View Single Post
 
Old 05-29-2018, 12:01 PM
David Matthews David Matthews is offline Windows 7 64bit Office 2016
Novice
 
Join Date: May 2018
Posts: 6
David Matthews is on a distinguished road
Default

Thank you. I know it wants to work, but, Dag nabbit, now I'm getting the attached Run-time error 5991.

I've researched it and can't figure out what code to put where.

What I've seen looks something like this:

Table table=Globals.ThisDocument.Tables[1];

Range range = table.Range;

for (int i = 1; i <= range.Cells.Count; i++)

{

if(range.Cells[i].RowIndex == table.Rows.Count)

range.Cells[i].Range.Text = range.Cells[i].RowIndex + ":" + range.Cells[i].ColumnIndex;

}


Any thoughts?

Thanks so much,

David
Attached Images
File Type: jpg 2018-05-29_13-58-08.jpg (15.8 KB, 37 views)
Reply With Quote