title: How can I go to end in word, using vba from Excel
body: <p>In my vba code I need to go to the end of the word document.
  The vba is written and executed from Excel. 
  The statement : Selection.EndKey unit:=wdStory, Extend:=wdMove " will not run.
  Can anyone explain where I do the mistyping.</p>
  
  <p>I have tried to use the statement in other vba codes, but without success.</p>
  
  <pre><code>Sub InsertFromFilesTestEnd()
  
  
  Dim wrdApp As Word.Application
  Dim wrdDoc As Word.Document
  
  
      Set wrdApp = New Word.Application
      Set wrdDoc = wrdApp.Documents.Open("c:\users\peter\documents\direkte 0302 1650.docm")
          wrdApp.Visible = True
          wrdApp.Activate
          Application.ScreenUpdating = False
  
  Selection.EndKey unit:=wdStory, Extend:=wdMove
  End Sub
  </code></pre>
  
  <p>Hopefully you can guide me to the end of my document. When so, I am sure I can use "selection" to move around in the document.</p>