Results 1 to 20 of 21

Thread: copy from Word to Access

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    copy from Word to Access

    Trying to copy active word document contents to a field in Access w/one button click, using late binding.

    I've gotten this far, but it doesn't work. I'm not a programmer, so I can only pick my way thru and pull stuff from other code I've downloaded, so speak down to me please!

    Dim objWord As Object
     Dim objDoc As Object
    Set objWord = GetObject(, "Word.Application")
     objWord.Visible = True
    Set objDoc = objWord.activedocument
    objDoc.Selection.HomeKey Unit:=wdStory
    objDoc.Selection.Extend
    Me!TxDetails.SetFocus Paste
    Thanks in advance,

    Ed
    Last edited by Aussiebear; 03-26-2023 at 11:13 AM. Reason: Adjusted the code tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •