• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Excel table flipping backwards in InDesign

Community Beginner ,
Jan 09, 2020 Jan 09, 2020

Copy link to clipboard

Copied

Hi, I'm hoping someone can help me out:

On a mac, using InDesign CC (15.0.1 newest version as of today) and am having trouble importing an Excel table; all info comes in perfectly ... backwards, as if it's "flipped". (Columns are flipped, rows are ok)

Can someone advise?

See screenshots attached:

 
 
TOPICS
Import and export

Views

852

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 09, 2020 Jan 09, 2020

Copy link to clipboard

Copied

Was a screen shot attached? I don't see it. Does selecting the table and clicking the Flip Horizontal icon in InDesign fix the problem?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 10, 2020 Jan 10, 2020

Copy link to clipboard

Copied

Thanks, but that doesn't work- it's not flipped mirror images, it's just that the first column is now the last column, the 2nd column is the 2nd to last column, etc.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2020 Jan 10, 2020

Copy link to clipboard

Copied

when you select the table

from table panel

 

left-to-right-table

right-to-left-table

 

Screen Shot 2020-01-10 at 2.51.06 PM.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 10, 2020 Jan 10, 2020

Copy link to clipboard

Copied

Thanks

I don't see the left-to-right/ right-to-left Table option on my panel? see screenshot

 

table panel Indesigntable panel Indesign

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 10, 2020 Jan 10, 2020

Copy link to clipboard

Copied

excel screenshotexcel screenshotindesign screenshotindesign screenshot

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2020 Jan 10, 2020

Copy link to clipboard

Copied

I cannot tell why this happened, but you may try to switch the table back to "normal".

 

Select your table and
run the following ExtendScript (JavaScript) code on your selected table:

 

app.selection[0].tableDirection = TableDirectionOptions.LEFT_TO_RIGHT_DIRECTION;

 

How to save code as a script file, how to install a script file so that you can access it from your Scripts Panel in InDesign:

http://www.indiscripts.com/pages/help#hd0sb2

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 10, 2020 Jan 10, 2020

Copy link to clipboard

Copied

Hm. Or could it be that the Excel table is already in the wrong table direction?
Because the Excel file comes from an Arabic Excel version perhaps?

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard

Copied

Hi graphiquedesigns,

you could test if the imported table has the wrong table direction in InDesign.

 

Just select one single cell in the third or fourth column of the table and hit the right-arrow key on your keyboard.

To select a cell, select some text in the cell and hit the Escape key.

 

EDITED: Wrong assumptions on my side. Sorry.

 

Does the selection advance to the right?

Then the source table is showing the wrong table direction. Try to solve that issue with the source Excel file.

 

Does the selection advance to the left?
Then your InDesign table has the wrong table direction.

You can correct that with the ExtendScript (JavaScript) code I gave in that post after selecting the whole table in InDesign:

https://community.adobe.com/t5/indesign/excel-table-flipping-backwards-in-indesign/m-p/10848056#M170...

 

FWIW: To select the whole table, just select a single cell and then do Select All.

 

Regards,
Uwe Laubender

( ACP )

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard

Copied

Thanks Uwe-

The table in InDesign is set in the right direction- I tested it moving the right & left arrows, and they advance correctly.

It seems to me that the Excel source file is ok too; the Language is set to English and the left/right arrow keys advance in the right direction. How can I check what direction the Excel source file is set to?

When I go to Excel > Preferences, I didn't see any listing or option for Table Direction. But the source Language was set to English.

I appreciate your help.

thanks

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 13, 2020 Jan 13, 2020

Copy link to clipboard

Copied

LATEST

Hi graphiquedesigns,

tested a bit with table direction an InDesign.

Results: In my post above I was wrong.

The arrow that advances a cell selection to the left or to the right is no indication of the table direction.

 

So you can only do the following:

Run the ExtendScript (JavaScript) script code below on the selected table:

// Set table direction from LEFT to RIGHT:
app.selection[0].tableDirection = TableDirectionOptions.LEFT_TO_RIGHT_DIRECTION;

 

If that is not working as expected try the opposite with:

// Set table direction from RIGHT to LEFT:
app.selection[0].tableDirection = TableDirectionOptions.RIGHT_TO_LEFT_DIRECTION;

 

How to save the code to a script file, install the script file and run the script see:

http://www.indiscripts.com/pages/help#hd0sb2

 

Regards,
Uwe Laubender

( ACP )

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines