Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. how I get all contents of a word doc wirh a macro written in VB ?

how I get all contents of a word doc wirh a macro written in VB ?

Scheduled Pinned Locked Moved Visual Basic
jsonquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bog_tom
    wrote on last edited by
    #1

    how I get all contents of a word doc wirh a macro written in VB ? after this I need to get it and put into a Rich Text field into another application using API !

    B 2 Replies Last reply
    0
    • B bog_tom

      how I get all contents of a word doc wirh a macro written in VB ? after this I need to get it and put into a Rich Text field into another application using API !

      B Offline
      B Offline
      bryce
      wrote on last edited by
      #2

      use the clipboard anc copy it to that

      1 Reply Last reply
      0
      • B bog_tom

        how I get all contents of a word doc wirh a macro written in VB ? after this I need to get it and put into a Rich Text field into another application using API !

        B Offline
        B Offline
        bryce
        wrote on last edited by
        #3

        use the document's select or range object and select the lot (or wotever part of the doc u want) and use copy, its in the clipboard now so get your app to paste bryce

        B 1 Reply Last reply
        0
        • B bryce

          use the document's select or range object and select the lot (or wotever part of the doc u want) and use copy, its in the clipboard now so get your app to paste bryce

          B Offline
          B Offline
          bog_tom
          wrote on last edited by
          #4

          hi bryce ! I use ActiveDocument.Select Selection.Copy and if I open a new doc and use Paste the content will copy ! but I need to copy this into a variable as : doc.Body= "content" How can I made this ? thanks again !

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups