+ Reply to Thread
Results 1 to 3 of 3

Macro exporting data from a spreadsheet to word and retaining it as a table

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Macro exporting data from a spreadsheet to word and retaining it as a table

    Hi guys, wonder if you can help

    I'm working on a project and am slightly out of my depth! I'm trying to create a "report" button which generates a word file with the contents of the current worksheet in a nice table

    Currently the word file is created and the data is in there... From within Word, all that needs to happen is selecting all the text and then clicking Table>Convert>Text to Table

    I borrowed some code from somebody elses example and modified it a bit

    Please Login or Register  to view this content.
    This bit

    " .Range.ConvertToTable Separator:=wdSeparateByTabs"

    is the part which should be converting the text into a table... But it isn't!

    Anybody got any thoughts?
    Last edited by ggabs; 03-05-2009 at 12:52 PM.

  2. #2
    Registered User
    Join Date
    03-05-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Macro exporting data from a spreadsheet to word and retaining it as a table

    hopeful bump!

  3. #3
    Registered User
    Join Date
    03-05-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Macro exporting data from a spreadsheet to word and retaining it as a table

    last try! one more bump

+ 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