• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Sending Data to Word

Sending data to Word is a matter of obtaining a selection object and then using the TypeText method of the selection object to pass Word the text you want included in your document:

' Add some text
    Set wrdObjsel = wrdDocObj.ActiveWindow.Selection
    wrdObjsel.Style = wrdDocObj.Styles("Heading 1")
    wrdObjsel.TypeText Text:="Now is the time for all good men to come to the
      aid of their party."
    wrdObjsel.TypeParagraph


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint