Forum Discussion
Tommaso_Bertocchi
Sep 19, 2022Copper Contributor
Help with Paste from excel to word
Hi everyone! there is something going on that i really cant figure out.. i have an excell file with a table, few columns lot of rows, and a lot of pictures! if i select the whole 'space/stable' co...
- Sep 22, 2022
Tommaso_Bertocchi I apologize in advance if this makes you cry.
Using Visual Basic in Word, you can add a table to a document using a command such as
The table will be added to the Range, which can be defined in a number of ways. For example if the table was to be added at the end of the document, you would use
Dim NewTable As Table
Dim tblRange As Range
Set tblRange = ActiveDocument.Range
tblRange. Collapse wdCollapseEnd
Set NewTable = ActiveDocument.Tables.Add(tblRange, NumRows, NumColumns, etc)
While you would usually set the tolal number of columns when adding the table, in most cases you would not set the total number of rows as you can simply use
NewTable.Rows.Add
whenever a new row is required.
The following is a listing of the members of the Table class
As an example, this is a screen shot of onw of the tables in an 1100 page document that was created, populated with text and formatted using a visual basic routine run from an Access database
Tommaso_Bertocchi
Sep 21, 2022Copper Contributor
Goodmorning! thanks for the reply, here are the links:
note: excel file have a macro to copy the area that needed to be pasted, feel free to keep macro disabled if you dont trust it and manually select the whole table( 3-612, D-J)
www.martel.it/File_uso_interno/Example.xlsm
www.martel.it/File_uso_interno/word2010-right.docx
www.martel.it/File_uso_interno/word2016-wrong.docx
p.s. i'm worried it could be a problem not related to excel/word, but with the clipboard of windows10 wich maybe is too slow?
thanks in advance!
Sep 21, 2022
When opened in a 64bit installation of Microsoft 365 Apps for enterprise, Version 2208 (Build 15601.20148 Click-to-Run) Curret Channel, both the Word2010-right and Word2016-wrong documents appear to be complete and identical with all of the images from teh Excel workbook.
However, if I try to copy and paste into a Word document in the above version of Office, very few of the images are present in the document.
I guess the question is, why do you need to move from Excel to Word?
However, if I try to copy and paste into a Word document in the above version of Office, very few of the images are present in the document.
I guess the question is, why do you need to move from Excel to Word?
- Tommaso_BertocchiSep 21, 2022Copper Contributorfirst part of your reply is suuuper weird! i will do some testing
btw i need to copy-paste because in the current version of this 'software' we use excel macros to generate a lot of big tables with in-depth data, we paste those tables to a word document with a lot of text and explanations
basically to make offers in the fastes way possible and with less human-type errors!
next step will be to pritn a pdf file from excel, skipping word, but there is still a lot of work to do to reach that point!- Sep 21, 2022It would be possible to create a macro in Word to create the table in Word in the first instance so that copying and pasting from Excel would not be required.
- Tommaso_BertocchiSep 22, 2022Copper ContributorNo, definitly not possible, those excel file are too complicated and have too many data regarding our products/components/machines, it's not only picture / description as it may seem