+ Reply to Thread
Results 1 to 4 of 4

Excel to Word table (and formatting)

  1. #1
    Registered User
    Join Date
    06-26-2009
    Location
    O.o
    MS-Off Ver
    Excel 2003
    Posts
    64

    Excel to Word table (and formatting)

    Hi,

    I am trying to copy data from an excel sheet into a word document, and would like to learn how i could write a macro to save me time by not having to type it in manually.

    Each page of the word document is split into a 4 row x 2 column table, and each row of the spreadsheet contains data to be input into 1 of these table's cells. There are 121 rows of data and 4 variables/columns.

    Furthermore, the data extracted from the table is to be reformatted, so that it takes a vertical shape inside the cell.
    ie. <Info A>
    <Info B>
    <Info C>
    <Info D>

    If anyone could assist me or set me in the right direction it would be greatly appreciated, as this is quite far out of my depth.

    I have attached the files in case the above doesn't make much sense.

    Thx & rgrds,

    D
    Attached Files Attached Files

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Excel to Word table (and formatting)

    Hi,

    could you also attach a Word document that shows what the result should look like? Attaching Word documents is a bit painful here, you first have to Zip them, otherwise they're too big.

    cheers

  3. #3
    Registered User
    Join Date
    06-26-2009
    Location
    O.o
    MS-Off Ver
    Excel 2003
    Posts
    64

    Re: Excel to Word table (and formatting)

    Attached word doc as requested.

    Hope this helps visualise the problem.

    D
    Attached Files Attached Files

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Excel to Word table (and formatting)

    Dems, what you want to do does not require a macro or complicated copy and paste operations. You need to look into mail merge using Labels as the target document.

    In Word, click the Mailings ribbon, then open the "Start Mail Merge panel" and select "Step by step Mail Merge Wizard".
    Step 1 - Select document type = Labels
    Step 2 - Select Use the current document
    Step 3 - click the Browse button and navigate to your Excel file and select the first tab, click ok
    Step 4 - use the "More Items" dialog to insert your fields . Arrange the fields on the first label, then click the button "Update all labels" to copy the layout to the other labels
    Step 5 - preview the labels
    Step 6 - complete the merge, either to a new document (advisable) or straight to the printer (not advisable)

    hth

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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