Hi, I'm adding word tables using
MATLAB CODEnewtable = tableRange.ConvertToTable();
After this if I type
MATLAB CODEnewtable.Columns.Count
I get the correct answer, 22. BUT if I try and seelct a column via, say,
MATLAB CODEnewtable.Columns(1).Select();
the whole table is selected (!). Then, if I do
MATLAB CODEcol = newtable.Columns(1)
col has a type "columns" as if the index does not work and
MATLAB CODEcol = newtable.Columns(1).Count
agian returns 22.
Interestingly
MATLAB CODEnewtable.Columns(2).Select
Returns "Index exceeds matrix dimensions.".
It's almost like the index (1) etc is being ignores.
Can anyone help me on this please – for the best performance I really need to be able to quickly select entire columns without using MoveDown etc.
Tom
Best Answer