P
papamobil68
Hi
I have 2 issues with a table with I dont understand:
1) This 2 commands format all column of my table to "centered", not only the
first one. Why is that?
WordTable.Columns.Item(1).Select;
WordApp.Selection.Range.ParagraphFormat.Alignment(1);
2) This 4 commands does only format cell(1,1) to "centered", not the whole
column.
WordTable.Columns.Item(1).Select;
WordApp.Selection.Range.ParagraphFormat.Alignment(1);
WordTable.Columns.Item(2).Select;
WordApp.Selection.Range.ParagraphFormat.Alignment(2);
Btw: Code may look a bit strange because it runs in an ERP-Module (Excel as
Automation Object).
Thank you for your help.
I have 2 issues with a table with I dont understand:
1) This 2 commands format all column of my table to "centered", not only the
first one. Why is that?
WordTable.Columns.Item(1).Select;
WordApp.Selection.Range.ParagraphFormat.Alignment(1);
2) This 4 commands does only format cell(1,1) to "centered", not the whole
column.
WordTable.Columns.Item(1).Select;
WordApp.Selection.Range.ParagraphFormat.Alignment(1);
WordTable.Columns.Item(2).Select;
WordApp.Selection.Range.ParagraphFormat.Alignment(2);
Btw: Code may look a bit strange because it runs in an ERP-Module (Excel as
Automation Object).
Thank you for your help.