+ Reply to Thread
Results 1 to 2 of 2

Why source word table gets copied as text without table

  1. #1
    Forum Contributor
    Join Date
    08-20-2019
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    101

    Why source word table gets copied as text without table

    I have a word file template (FileA.docx). It has a specific table (TableA)which either needs to be filled using an excel VBA listbox or I need to give the user an option to select another word file(e.g. FileB.docx). The entire content of the FileB.docx should replace the table in FileA.docx.

    I have the code to insert data from listbox in the existing table. But the second option of inserting content from other word file is not working as required.

    I have bookmarked the whole TableA, including two lines above and below it as "Annex1"

    The FileB.docx also has a table. When the below code runs it copies the content of FileB but the table there loses its format and gets pasted as normal lines in FileA like below. How do I fix this?

    Annexure 1: Title
    Sr.No.
    Area
    Sub-area
    1
    Sample Area 1
    Sample Sub Area 1
    Sample Sub Area 2
    Sample Sub Area 3
    2
    Sample Area 2
    Sample Sub Area 1
    Sample Sub Area 2
    Sample Sub Area 3
    Sample Sub Area 1
    Sample Sub Area 2
    Sample Sub Area 3
    3
    Sample Area 3
    Sample Sub Area 1
    Sample Sub Area 2
    Sample Sub Area 3
    Sample Sub Area 1

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    08-20-2019
    Location
    Mumbai
    MS-Off Ver
    Office 365
    Posts
    101

    Re: Why source word table gets copied as text without table

    resolved with this bit of code

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Vertical Alignment in Table in Word Copied from Excel
    By learnexcelvba in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-25-2019, 09:21 PM
  2. Delete Repeated Rows In Table Copied From Word
    By Treeman_JF in forum Excel General
    Replies: 6
    Last Post: 11-01-2018, 09:12 AM
  3. [SOLVED] Copied excel table to Word, but need Word opening in landscape
    By jennis7242 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 05-17-2018, 08:58 AM
  4. Pivot Table Graph Loses Data Source Link When Copied to New WB
    By ddep in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2014, 02:05 PM
  5. [SOLVED] Summary table updated from source table. Source table held in a different workbook
    By dma1976 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 11-22-2013, 11:36 AM
  6. Pivot Table: Not all source records have been copied. ???
    By mrwhirlwind in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 09-10-2013, 09:07 PM
  7. Replies: 7
    Last Post: 04-21-2009, 02:50 AM

Bookmarks

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