Thank you fumei,
I'm an idiot. I had the Selection.Cells(1).ColumnIndex correct to find the Column Number I was in, But for the count I used:
ActiveDocument.Tables(1).Columns.Count and it was always counting the columns for the topmost table in the document.
I had a feeling that this answer...
How do I figure out what table number I am in in a Word document? I need to write a macro that will right align numbers by their right-most digit excluding any trailers (%, x, or parens) but I first need to get the table number so that I can do a row and column count.
Sincerely,
Pat2e69
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.