Send text to MS Word using VB Code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • klove1209
    New Member
    • Feb 2007
    • 32

    Send text to MS Word using VB Code

    Hey All,

    I am trying to create a function that allows you read text from a query/table and sends specific text to a MS Word document?
    I tried using the print# statement, but that only worked with a .txt file.

    Thanks
  • willakawill
    Top Contributor
    • Oct 2006
    • 1646

    #2
    Hi take a look here

    Comment

    • klove1209
      New Member
      • Feb 2007
      • 32

      #3
      Thank you for your assistance. The only problem now is that I would need to format the text that is being transferred to Word. Any suggestions on how I could fix the font & boldness?

      Also,
      I have check boxes in a table for a user to select Yes/No for charts they would like to insert into the same open Word document being used to transfer text to.

      I already have a program that exports the charts to word in as a Image. I would just need this code to export the specific chart to MS Word, then copy and paste that Image into the open document.

      Thanks


      Originally posted by willakawill

      Comment

      • willakawill
        Top Contributor
        • Oct 2006
        • 1646

        #4
        Just type 'vb word automation' into google and you will find tons of resources to help you

        Comment

        Working...