VBA code

%3CLINGO-SUB%20id%3D%22lingo-sub-2560010%22%20slang%3D%22en-US%22%3EVBA%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2560010%22%20slang%3D%22en-US%22%3E%3CDIV%3E%3CSPAN%3ERespected%20Sir%2FMadam%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3EI%20am%20working%20in%20MS-Word%202016.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EI%20am%20not%20a%20technical%20person.%20I%20have%20no%20knowledge%20about%20coding.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EI%20want%20to%20copy%20a%20table%20from%20Word%20from%20(temporary%20file)%20and%20paste%20into%20another%20Word%20document%20(main%20file)%20by%20VBA%20code.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3EEvery%20time%20the%20table%20is%20different.%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3ELike%20copy%20the%201st%20table%2C%20then%202nd%20table%2C%20then%203rd%20table%20and%20so%20on........%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%3ETotal%20table%20is%20around%2039.%20A%3C%2FSPAN%3E%3CSPAN%3Efter%20finding%20a%20specific%20word%20in%20(main%20file).%20Attendance%20Time%20(10%20minutes)%20in%20table.%20Attendance%20Time%20(10%20minutes)%20is%20a%20specific%20Word%20in%20Table%20and%20I%20want%20to%20add%20the%20copied%20table%20after%20Attendance%20Time%20(10%20minutes)%20row.%20What%20is%20the%20VBA%20code%20for%20this%20task%3F%20I%20am%20sharing%20both%20main%20and%20temporary%20files.%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2561130%22%20slang%3D%22en-US%22%3ERe%3A%20VBA%20code%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2561130%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1105984%22%20target%3D%22_blank%22%3E%40Rohit_Sonwane%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3EI%20don't%20really%20understand%20what%20you%20are%20trying%20to%20achieve%2C%20but%20this%20seems%20to%20be%20a%20good%20task%20for%20Excel%2C%20moving%20the%20document%20from%20Word%20to%20Excel.%20It%20will%20make%20the%20calculations%20for%20you%20automatically.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor
Respected Sir/Madam
I am working in MS-Word 2016. I am not a technical person. I have no knowledge about coding. I want to copy a table from Word from (temporary file) and paste into another Word document (main file) by VBA code. Every time the table is different. Like copy the 1st table, then 2nd table, then 3rd table and so on........ Total table is around 39. After finding a specific word in (main file). Attendance Time (10 minutes) in table. Attendance Time (10 minutes) is a specific Word in Table and I want to add the copied table after Attendance Time (10 minutes) row. What is the VBA code for this task? I am sharing both main and temporary files.
1 Reply

Hi @Rohit_Sonwane ,

I don't really understand what you are trying to achieve, but this seems to be a good task for Excel, moving the document from Word to Excel. It will make the calculations for you automatically.