Consulting

Results 1 to 2 of 2

Thread: Export Excel data to Word table

  1. #1

    Export Excel data to Word table

    I need to export data (numbers and text) from Excel sheet to a Word table. The Word table, including its layout and colour formatting has been defined already and only the data has to be exported into it.
    I have to be able to modify the number formatting and the number of rows in the Word table through VBA since the table should include 1-20 rows, depending on what data there is in the Excel sheet.
    I cannot find the correct syntax to set a reference to the Word table from Excel and I don't know how to add/delete rows from it. Any ideas?

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Even formatting Tables in Word is not straightforward. This post may assist with part of your question
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

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