How to change the order of columns in a two column file RRS feed

  • Question

  • Hi,

    I have a two column English file. My program translates the file to a "right to left" language(Persian) and generates the corresponding Persian file. In the generated file I need to change the order of the columns, but I don't know how to do it. I mean that in the Persian file, the column corresponding to the first column of the English file should be at right and the next column at left of the file.


    Hamidreza Ghader

    Thursday, January 20, 2011 7:42 AM

All replies

  • Hi Hamidreza

    I'm assuming these are columns in a table (as opposed to newspaper columns). There's nothing "simple" for this in the objectmodel - the problem being that a column cannot be assigned to a Range object. But it can be selected. The following VB code works for me in a quick test but I can't guarantee it will work "in production". You'd want to do extensive testing:

    'At this point, the selection is in cell(1,1)

    Cindy Meister, VSTO/Word MVP
    Thursday, January 20, 2011 8:46 AM
  • Hi,

    Thanks for your reply. I think if there would be a way to change the direction of entire Document, this problem could be solved. Is there any way?


    Hamidreza Ghader


    Thursday, January 20, 2011 9:08 AM