# Shifted cells if a word table is copied in a excel table

1. ## Shifted cells if a word table is copied in a excel table

Hello,

I would like to use a word table copying it in excel. But when i copy it in excel, some cells of the column "pièce" are shifted in relation to the original word table. For example, you can see that the number 174 of the column "pièce" is no longer in front of the number 605 of the column "art." and the number 180 of the column "pièce" is no longer in front of the number 637 of the column "art."
Could you tell me how to solve this problem, because i would like to do subtotals based on the numbers of the column "art." Than you.

I'm french so excuse me for my english language.

Here are my word and my excel tables as attachments.

2. ## Re: Shifted cells if a word table is copied in a excel table

Your table in Word should have the same structure as the table in Excel (i.e., the same number of rows), rather than using carriage returns.

3. ## Re: Shifted cells if a word table is copied in a excel table

In your MS Word document, column Art, you have formattted the paragraphs:
Spacing:
before = 1.85 pt,
after = 0 pt,
line spacing = exactly @ 7.75 pt
However, in column Piece the paragraph formatting is:
Spacing:
before = after = 0 pt,
line spacing = exactly @ 8 pt
Thus, 605 is 20 lines down in column one, but 174 is 21 lines down in column 2 to get it to line up with the unequal spacing parameters.

4. ## Re: Shifted cells if a word table is copied in a excel table

Hello, so if I understand, there 's no solution to my problem, knowing my word file have 55 pages ?
Thank you.

5. ## Re: Shifted cells if a word table is copied in a excel table

My suggestions:
1. Select the entire Word document and change the paragraph formatting to 0 pt before and after.

2. Change the line spacing to double

3. Since you inserted blank lines to get double spacing, you will need to delete the blank lines. Use Find/Replace to find the double paragraph markers ^p^p and replace with a single paragraph marker ^p

4. In column 4 you have inserted blank lines by putting in a tab mark followed by 29 spaces and a paragraph marker: Use the Find/Replace option to find the ^t.............................^p and replace them with nothing. Note that there are 29 blanks between the ^t and ^p tab and paragraph markers.

I also suggest that you show all formatting marks: Tools > Options > View > Formatting Marks > All
----------------
Tabs show up as , spaces as dots and paragraph markers as ¶

Testcopiercollerexcelword(bvj-excelforum).zip
(In your original Word document, because of the difference in spacings between the two columns, the 174 was copied one row lower than the 605 when pasted into Excel because it was actually one line lower in the Word doc even though they appeared to line up horizontally.)

6. ## Re: Shifted cells if a word table is copied in a excel table

Hello,

Please, could you make a macro or vba in my word file to automate all these adjustments and to save time, because i don't know to make a macro ? Indeed, i work daily on this type of file so i would like to use every day your macro . Thank you for your help.
I send you my word file in full as an attachment.

7. ## Re: Shifted cells if a word table is copied in a excel table

I'll look at it tomorrow; it's late now. Also, the new document you sent was saved in Rich Rext Format (rtf), and in order to save a macro it will have to be a Word doc instead.

8. ## Re: Shifted cells if a word table is copied in a excel table

Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. We are here to help so help us help you!

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1