How do I copy Word tables into Excel without splitting cells into multiple rows?












26














I have data in a Word table that includes line and paragraph breaks. When I copy the data into Excel, it splits each line and paragraph I want into multiple cells. How do I copy the data to Excel and keep the breaks?










share|improve this question



























    26














    I have data in a Word table that includes line and paragraph breaks. When I copy the data into Excel, it splits each line and paragraph I want into multiple cells. How do I copy the data to Excel and keep the breaks?










    share|improve this question

























      26












      26








      26


      14





      I have data in a Word table that includes line and paragraph breaks. When I copy the data into Excel, it splits each line and paragraph I want into multiple cells. How do I copy the data to Excel and keep the breaks?










      share|improve this question













      I have data in a Word table that includes line and paragraph breaks. When I copy the data into Excel, it splits each line and paragraph I want into multiple cells. How do I copy the data to Excel and keep the breaks?







      microsoft-excel microsoft-word






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 28 '14 at 17:39









      skia.heliou

      1,54821519




      1,54821519






















          4 Answers
          4






          active

          oldest

          votes


















          34














          You'll have to do a bit of character replacement. It's a pretty simple fix.



          In Word:




          1. Select your entire table in Word.

          2. Open the "Find and Replace" dialog
            (e.g., by typing Ctrl+H).

          3. In the "Find what" field, enter ^l. This will select all line breaks.


            • You may select paragraph breaks by entering ^p.



          4. In the "Replace with" field, enter ^v.


            • This is a shortcut for the paragraph symbol ¶, also known as a "pilcrow".

            • You may want to replace paragraph marks with two pilcrows for ease in replacement later.



          5. Click "Replace All".

          6. Copy the table data to the clipboard.


          In Excel:




          1. Paste your table in the desired location in Excel.

          2. With the tabular data selected, open the "Find and Replace" dialog (again, Ctrl+H works).

          3. In the "Find what" field, enter the following Alt code: Alt+0182. A pilcrow appears.


            • To enter an Alt code, hold down the Alt key as you type the digits on the numeric keypad. It may help to have Num Lock on.



          4. In the Replace field, enter the following Alt code: Alt+0010.


            • This code enters in a single line break. Nothing appears, though your cursor may change.



          5. Click "Replace All".


          References:




          • http://ask.metafilter.com/168104/Copying-Word-tables-into-Excel-without-splitting-cells-into-multiple-rows

          • http://symbolcodes.tlt.psu.edu/accents/codealt.html#punc






          share|improve this answer























          • This answer (with trivial, cosmetic differences) appeared on Microsoft.com at Retain multi-line cells when pasting Word table into Excel.  And, BTW, I find that (Alt)+010 is good enough; I don’t need the two leading zeros.
            – G-Man
            Apr 30 '15 at 21:10










          • @G-Man Ha...if only I'd found that earlier! Too bad I wasn't working in Office 2007 at the time. Also, do you mean the leading one zero (Alt+010) or the leading two (Alt+10)?
            – skia.heliou
            May 1 '15 at 17:03










          • Thanks - I got all of the steps to work on a Mac (in Excel 15) except for the last one - I was unable to get the alt-0010 or line break entered. Any suggestions? I tried copying-and-pasting a line break from another source as well as a few other tricks.
            – JayCrossler
            Jun 17 '16 at 14:46










          • Office 2013 here, this doesn't work. Still getting multiple rows in Excel after the replacement.
            – Neil
            Dec 17 '18 at 17:49



















          12














          There is an easier way.



          If you have a Google Gmail account, you can open up Google Drive, and create a new spreadsheet, then copy the entire table from Microsoft Word into the Google Spreadsheet. Once you have it in the desired format, you can then copy the table into Microsoft Excel.






          share|improve this answer

















          • 2




            ... or... just leave it in Drive :)
            – GreenAsJade
            Jul 20 '16 at 2:36










          • I had to copy from Word to Google Doc and then from Google Doc to Google Sheet (or else the line breaks would disappear). +1 anyway
            – user2518618
            Sep 20 '18 at 14:04





















          0














          I found that you can use LibreOffice Calc.




          1. Select your Word table

          2. Copy

          3. In LibreOffice Calc, Paste Special as HTML

          4. Save in your favorite format


          Your table won't be split into multiple cells.






          share|improve this answer































            0














            I made a vba function to remove newline that caused the cells to split in excel before copying to excel.




            sub RemoveNewLinesFromTabelCells(tblnumber as integer)
            'remove newline from every cell in the selected table table by table number
            dim x as long, y as long, columncount as long, rowcount as long
            columncount = Activedocument.Tables(tblNumber).Range.Columns.Count
            rowcount = Activedocument.Tables(tblNumber).Range.Rows.Count
            for x = 1 to rowcount
            for y = 1 to columncount
            ActiveDocument.Tables(tblNumber).cell(x,y).Range.Text = Replace(ActiveDocument.TAbles(tblNumber).cell(x,y).Range.Text, Chr(13,"")
            next y
            next x
            end sub





            share|improve this answer





















              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f747197%2fhow-do-i-copy-word-tables-into-excel-without-splitting-cells-into-multiple-rows%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              34














              You'll have to do a bit of character replacement. It's a pretty simple fix.



              In Word:




              1. Select your entire table in Word.

              2. Open the "Find and Replace" dialog
                (e.g., by typing Ctrl+H).

              3. In the "Find what" field, enter ^l. This will select all line breaks.


                • You may select paragraph breaks by entering ^p.



              4. In the "Replace with" field, enter ^v.


                • This is a shortcut for the paragraph symbol ¶, also known as a "pilcrow".

                • You may want to replace paragraph marks with two pilcrows for ease in replacement later.



              5. Click "Replace All".

              6. Copy the table data to the clipboard.


              In Excel:




              1. Paste your table in the desired location in Excel.

              2. With the tabular data selected, open the "Find and Replace" dialog (again, Ctrl+H works).

              3. In the "Find what" field, enter the following Alt code: Alt+0182. A pilcrow appears.


                • To enter an Alt code, hold down the Alt key as you type the digits on the numeric keypad. It may help to have Num Lock on.



              4. In the Replace field, enter the following Alt code: Alt+0010.


                • This code enters in a single line break. Nothing appears, though your cursor may change.



              5. Click "Replace All".


              References:




              • http://ask.metafilter.com/168104/Copying-Word-tables-into-Excel-without-splitting-cells-into-multiple-rows

              • http://symbolcodes.tlt.psu.edu/accents/codealt.html#punc






              share|improve this answer























              • This answer (with trivial, cosmetic differences) appeared on Microsoft.com at Retain multi-line cells when pasting Word table into Excel.  And, BTW, I find that (Alt)+010 is good enough; I don’t need the two leading zeros.
                – G-Man
                Apr 30 '15 at 21:10










              • @G-Man Ha...if only I'd found that earlier! Too bad I wasn't working in Office 2007 at the time. Also, do you mean the leading one zero (Alt+010) or the leading two (Alt+10)?
                – skia.heliou
                May 1 '15 at 17:03










              • Thanks - I got all of the steps to work on a Mac (in Excel 15) except for the last one - I was unable to get the alt-0010 or line break entered. Any suggestions? I tried copying-and-pasting a line break from another source as well as a few other tricks.
                – JayCrossler
                Jun 17 '16 at 14:46










              • Office 2013 here, this doesn't work. Still getting multiple rows in Excel after the replacement.
                – Neil
                Dec 17 '18 at 17:49
















              34














              You'll have to do a bit of character replacement. It's a pretty simple fix.



              In Word:




              1. Select your entire table in Word.

              2. Open the "Find and Replace" dialog
                (e.g., by typing Ctrl+H).

              3. In the "Find what" field, enter ^l. This will select all line breaks.


                • You may select paragraph breaks by entering ^p.



              4. In the "Replace with" field, enter ^v.


                • This is a shortcut for the paragraph symbol ¶, also known as a "pilcrow".

                • You may want to replace paragraph marks with two pilcrows for ease in replacement later.



              5. Click "Replace All".

              6. Copy the table data to the clipboard.


              In Excel:




              1. Paste your table in the desired location in Excel.

              2. With the tabular data selected, open the "Find and Replace" dialog (again, Ctrl+H works).

              3. In the "Find what" field, enter the following Alt code: Alt+0182. A pilcrow appears.


                • To enter an Alt code, hold down the Alt key as you type the digits on the numeric keypad. It may help to have Num Lock on.



              4. In the Replace field, enter the following Alt code: Alt+0010.


                • This code enters in a single line break. Nothing appears, though your cursor may change.



              5. Click "Replace All".


              References:




              • http://ask.metafilter.com/168104/Copying-Word-tables-into-Excel-without-splitting-cells-into-multiple-rows

              • http://symbolcodes.tlt.psu.edu/accents/codealt.html#punc






              share|improve this answer























              • This answer (with trivial, cosmetic differences) appeared on Microsoft.com at Retain multi-line cells when pasting Word table into Excel.  And, BTW, I find that (Alt)+010 is good enough; I don’t need the two leading zeros.
                – G-Man
                Apr 30 '15 at 21:10










              • @G-Man Ha...if only I'd found that earlier! Too bad I wasn't working in Office 2007 at the time. Also, do you mean the leading one zero (Alt+010) or the leading two (Alt+10)?
                – skia.heliou
                May 1 '15 at 17:03










              • Thanks - I got all of the steps to work on a Mac (in Excel 15) except for the last one - I was unable to get the alt-0010 or line break entered. Any suggestions? I tried copying-and-pasting a line break from another source as well as a few other tricks.
                – JayCrossler
                Jun 17 '16 at 14:46










              • Office 2013 here, this doesn't work. Still getting multiple rows in Excel after the replacement.
                – Neil
                Dec 17 '18 at 17:49














              34












              34








              34






              You'll have to do a bit of character replacement. It's a pretty simple fix.



              In Word:




              1. Select your entire table in Word.

              2. Open the "Find and Replace" dialog
                (e.g., by typing Ctrl+H).

              3. In the "Find what" field, enter ^l. This will select all line breaks.


                • You may select paragraph breaks by entering ^p.



              4. In the "Replace with" field, enter ^v.


                • This is a shortcut for the paragraph symbol ¶, also known as a "pilcrow".

                • You may want to replace paragraph marks with two pilcrows for ease in replacement later.



              5. Click "Replace All".

              6. Copy the table data to the clipboard.


              In Excel:




              1. Paste your table in the desired location in Excel.

              2. With the tabular data selected, open the "Find and Replace" dialog (again, Ctrl+H works).

              3. In the "Find what" field, enter the following Alt code: Alt+0182. A pilcrow appears.


                • To enter an Alt code, hold down the Alt key as you type the digits on the numeric keypad. It may help to have Num Lock on.



              4. In the Replace field, enter the following Alt code: Alt+0010.


                • This code enters in a single line break. Nothing appears, though your cursor may change.



              5. Click "Replace All".


              References:




              • http://ask.metafilter.com/168104/Copying-Word-tables-into-Excel-without-splitting-cells-into-multiple-rows

              • http://symbolcodes.tlt.psu.edu/accents/codealt.html#punc






              share|improve this answer














              You'll have to do a bit of character replacement. It's a pretty simple fix.



              In Word:




              1. Select your entire table in Word.

              2. Open the "Find and Replace" dialog
                (e.g., by typing Ctrl+H).

              3. In the "Find what" field, enter ^l. This will select all line breaks.


                • You may select paragraph breaks by entering ^p.



              4. In the "Replace with" field, enter ^v.


                • This is a shortcut for the paragraph symbol ¶, also known as a "pilcrow".

                • You may want to replace paragraph marks with two pilcrows for ease in replacement later.



              5. Click "Replace All".

              6. Copy the table data to the clipboard.


              In Excel:




              1. Paste your table in the desired location in Excel.

              2. With the tabular data selected, open the "Find and Replace" dialog (again, Ctrl+H works).

              3. In the "Find what" field, enter the following Alt code: Alt+0182. A pilcrow appears.


                • To enter an Alt code, hold down the Alt key as you type the digits on the numeric keypad. It may help to have Num Lock on.



              4. In the Replace field, enter the following Alt code: Alt+0010.


                • This code enters in a single line break. Nothing appears, though your cursor may change.



              5. Click "Replace All".


              References:




              • http://ask.metafilter.com/168104/Copying-Word-tables-into-Excel-without-splitting-cells-into-multiple-rows

              • http://symbolcodes.tlt.psu.edu/accents/codealt.html#punc







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Apr 30 '15 at 21:09









              G-Man

              5,566112357




              5,566112357










              answered Apr 28 '14 at 17:39









              skia.heliou

              1,54821519




              1,54821519












              • This answer (with trivial, cosmetic differences) appeared on Microsoft.com at Retain multi-line cells when pasting Word table into Excel.  And, BTW, I find that (Alt)+010 is good enough; I don’t need the two leading zeros.
                – G-Man
                Apr 30 '15 at 21:10










              • @G-Man Ha...if only I'd found that earlier! Too bad I wasn't working in Office 2007 at the time. Also, do you mean the leading one zero (Alt+010) or the leading two (Alt+10)?
                – skia.heliou
                May 1 '15 at 17:03










              • Thanks - I got all of the steps to work on a Mac (in Excel 15) except for the last one - I was unable to get the alt-0010 or line break entered. Any suggestions? I tried copying-and-pasting a line break from another source as well as a few other tricks.
                – JayCrossler
                Jun 17 '16 at 14:46










              • Office 2013 here, this doesn't work. Still getting multiple rows in Excel after the replacement.
                – Neil
                Dec 17 '18 at 17:49


















              • This answer (with trivial, cosmetic differences) appeared on Microsoft.com at Retain multi-line cells when pasting Word table into Excel.  And, BTW, I find that (Alt)+010 is good enough; I don’t need the two leading zeros.
                – G-Man
                Apr 30 '15 at 21:10










              • @G-Man Ha...if only I'd found that earlier! Too bad I wasn't working in Office 2007 at the time. Also, do you mean the leading one zero (Alt+010) or the leading two (Alt+10)?
                – skia.heliou
                May 1 '15 at 17:03










              • Thanks - I got all of the steps to work on a Mac (in Excel 15) except for the last one - I was unable to get the alt-0010 or line break entered. Any suggestions? I tried copying-and-pasting a line break from another source as well as a few other tricks.
                – JayCrossler
                Jun 17 '16 at 14:46










              • Office 2013 here, this doesn't work. Still getting multiple rows in Excel after the replacement.
                – Neil
                Dec 17 '18 at 17:49
















              This answer (with trivial, cosmetic differences) appeared on Microsoft.com at Retain multi-line cells when pasting Word table into Excel.  And, BTW, I find that (Alt)+010 is good enough; I don’t need the two leading zeros.
              – G-Man
              Apr 30 '15 at 21:10




              This answer (with trivial, cosmetic differences) appeared on Microsoft.com at Retain multi-line cells when pasting Word table into Excel.  And, BTW, I find that (Alt)+010 is good enough; I don’t need the two leading zeros.
              – G-Man
              Apr 30 '15 at 21:10












              @G-Man Ha...if only I'd found that earlier! Too bad I wasn't working in Office 2007 at the time. Also, do you mean the leading one zero (Alt+010) or the leading two (Alt+10)?
              – skia.heliou
              May 1 '15 at 17:03




              @G-Man Ha...if only I'd found that earlier! Too bad I wasn't working in Office 2007 at the time. Also, do you mean the leading one zero (Alt+010) or the leading two (Alt+10)?
              – skia.heliou
              May 1 '15 at 17:03












              Thanks - I got all of the steps to work on a Mac (in Excel 15) except for the last one - I was unable to get the alt-0010 or line break entered. Any suggestions? I tried copying-and-pasting a line break from another source as well as a few other tricks.
              – JayCrossler
              Jun 17 '16 at 14:46




              Thanks - I got all of the steps to work on a Mac (in Excel 15) except for the last one - I was unable to get the alt-0010 or line break entered. Any suggestions? I tried copying-and-pasting a line break from another source as well as a few other tricks.
              – JayCrossler
              Jun 17 '16 at 14:46












              Office 2013 here, this doesn't work. Still getting multiple rows in Excel after the replacement.
              – Neil
              Dec 17 '18 at 17:49




              Office 2013 here, this doesn't work. Still getting multiple rows in Excel after the replacement.
              – Neil
              Dec 17 '18 at 17:49













              12














              There is an easier way.



              If you have a Google Gmail account, you can open up Google Drive, and create a new spreadsheet, then copy the entire table from Microsoft Word into the Google Spreadsheet. Once you have it in the desired format, you can then copy the table into Microsoft Excel.






              share|improve this answer

















              • 2




                ... or... just leave it in Drive :)
                – GreenAsJade
                Jul 20 '16 at 2:36










              • I had to copy from Word to Google Doc and then from Google Doc to Google Sheet (or else the line breaks would disappear). +1 anyway
                – user2518618
                Sep 20 '18 at 14:04


















              12














              There is an easier way.



              If you have a Google Gmail account, you can open up Google Drive, and create a new spreadsheet, then copy the entire table from Microsoft Word into the Google Spreadsheet. Once you have it in the desired format, you can then copy the table into Microsoft Excel.






              share|improve this answer

















              • 2




                ... or... just leave it in Drive :)
                – GreenAsJade
                Jul 20 '16 at 2:36










              • I had to copy from Word to Google Doc and then from Google Doc to Google Sheet (or else the line breaks would disappear). +1 anyway
                – user2518618
                Sep 20 '18 at 14:04
















              12












              12








              12






              There is an easier way.



              If you have a Google Gmail account, you can open up Google Drive, and create a new spreadsheet, then copy the entire table from Microsoft Word into the Google Spreadsheet. Once you have it in the desired format, you can then copy the table into Microsoft Excel.






              share|improve this answer












              There is an easier way.



              If you have a Google Gmail account, you can open up Google Drive, and create a new spreadsheet, then copy the entire table from Microsoft Word into the Google Spreadsheet. Once you have it in the desired format, you can then copy the table into Microsoft Excel.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 23 '15 at 3:26









              Abe Basani

              12112




              12112








              • 2




                ... or... just leave it in Drive :)
                – GreenAsJade
                Jul 20 '16 at 2:36










              • I had to copy from Word to Google Doc and then from Google Doc to Google Sheet (or else the line breaks would disappear). +1 anyway
                – user2518618
                Sep 20 '18 at 14:04
















              • 2




                ... or... just leave it in Drive :)
                – GreenAsJade
                Jul 20 '16 at 2:36










              • I had to copy from Word to Google Doc and then from Google Doc to Google Sheet (or else the line breaks would disappear). +1 anyway
                – user2518618
                Sep 20 '18 at 14:04










              2




              2




              ... or... just leave it in Drive :)
              – GreenAsJade
              Jul 20 '16 at 2:36




              ... or... just leave it in Drive :)
              – GreenAsJade
              Jul 20 '16 at 2:36












              I had to copy from Word to Google Doc and then from Google Doc to Google Sheet (or else the line breaks would disappear). +1 anyway
              – user2518618
              Sep 20 '18 at 14:04






              I had to copy from Word to Google Doc and then from Google Doc to Google Sheet (or else the line breaks would disappear). +1 anyway
              – user2518618
              Sep 20 '18 at 14:04













              0














              I found that you can use LibreOffice Calc.




              1. Select your Word table

              2. Copy

              3. In LibreOffice Calc, Paste Special as HTML

              4. Save in your favorite format


              Your table won't be split into multiple cells.






              share|improve this answer




























                0














                I found that you can use LibreOffice Calc.




                1. Select your Word table

                2. Copy

                3. In LibreOffice Calc, Paste Special as HTML

                4. Save in your favorite format


                Your table won't be split into multiple cells.






                share|improve this answer


























                  0












                  0








                  0






                  I found that you can use LibreOffice Calc.




                  1. Select your Word table

                  2. Copy

                  3. In LibreOffice Calc, Paste Special as HTML

                  4. Save in your favorite format


                  Your table won't be split into multiple cells.






                  share|improve this answer














                  I found that you can use LibreOffice Calc.




                  1. Select your Word table

                  2. Copy

                  3. In LibreOffice Calc, Paste Special as HTML

                  4. Save in your favorite format


                  Your table won't be split into multiple cells.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Apr 30 '15 at 18:37









                  G-Man

                  5,566112357




                  5,566112357










                  answered Apr 30 '15 at 17:48









                  Pier

                  1091




                  1091























                      0














                      I made a vba function to remove newline that caused the cells to split in excel before copying to excel.




                      sub RemoveNewLinesFromTabelCells(tblnumber as integer)
                      'remove newline from every cell in the selected table table by table number
                      dim x as long, y as long, columncount as long, rowcount as long
                      columncount = Activedocument.Tables(tblNumber).Range.Columns.Count
                      rowcount = Activedocument.Tables(tblNumber).Range.Rows.Count
                      for x = 1 to rowcount
                      for y = 1 to columncount
                      ActiveDocument.Tables(tblNumber).cell(x,y).Range.Text = Replace(ActiveDocument.TAbles(tblNumber).cell(x,y).Range.Text, Chr(13,"")
                      next y
                      next x
                      end sub





                      share|improve this answer


























                        0














                        I made a vba function to remove newline that caused the cells to split in excel before copying to excel.




                        sub RemoveNewLinesFromTabelCells(tblnumber as integer)
                        'remove newline from every cell in the selected table table by table number
                        dim x as long, y as long, columncount as long, rowcount as long
                        columncount = Activedocument.Tables(tblNumber).Range.Columns.Count
                        rowcount = Activedocument.Tables(tblNumber).Range.Rows.Count
                        for x = 1 to rowcount
                        for y = 1 to columncount
                        ActiveDocument.Tables(tblNumber).cell(x,y).Range.Text = Replace(ActiveDocument.TAbles(tblNumber).cell(x,y).Range.Text, Chr(13,"")
                        next y
                        next x
                        end sub





                        share|improve this answer
























                          0












                          0








                          0






                          I made a vba function to remove newline that caused the cells to split in excel before copying to excel.




                          sub RemoveNewLinesFromTabelCells(tblnumber as integer)
                          'remove newline from every cell in the selected table table by table number
                          dim x as long, y as long, columncount as long, rowcount as long
                          columncount = Activedocument.Tables(tblNumber).Range.Columns.Count
                          rowcount = Activedocument.Tables(tblNumber).Range.Rows.Count
                          for x = 1 to rowcount
                          for y = 1 to columncount
                          ActiveDocument.Tables(tblNumber).cell(x,y).Range.Text = Replace(ActiveDocument.TAbles(tblNumber).cell(x,y).Range.Text, Chr(13,"")
                          next y
                          next x
                          end sub





                          share|improve this answer












                          I made a vba function to remove newline that caused the cells to split in excel before copying to excel.




                          sub RemoveNewLinesFromTabelCells(tblnumber as integer)
                          'remove newline from every cell in the selected table table by table number
                          dim x as long, y as long, columncount as long, rowcount as long
                          columncount = Activedocument.Tables(tblNumber).Range.Columns.Count
                          rowcount = Activedocument.Tables(tblNumber).Range.Rows.Count
                          for x = 1 to rowcount
                          for y = 1 to columncount
                          ActiveDocument.Tables(tblNumber).cell(x,y).Range.Text = Replace(ActiveDocument.TAbles(tblNumber).cell(x,y).Range.Text, Chr(13,"")
                          next y
                          next x
                          end sub






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 28 '17 at 16:29









                          codecaine

                          11




                          11






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f747197%2fhow-do-i-copy-word-tables-into-excel-without-splitting-cells-into-multiple-rows%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Terni

                              A new problem with tex4ht and tikz

                              Sun Ra