title: VBScript Doesn't insert copied Excel into Word on specific Page
body: <p>I try to copy a part from Excel into word on a specific (fifth) page.
  It copies the excel part into word, but always on the first page.</p>
  <pre><code>Set objExcel = CreateObject(&quot;Excel.Application&quot;)
  Set objWorkbook = objExcel.Workbooks.Open(&quot;C:\test.xlsx&quot;)
  Set objwdapp = CreateObject(&quot;Word.Application&quot;)
  Set objSelection = objwdapp.Selection
  
  objExcel.Worksheets(&quot;Sheet1&quot;).Range(&quot;A1:D4&quot;).Copy
  'Declare Object variables for the Word application and file or document
  Dim wddoc
  'Declare a String variable for the file name and folder path
  Dim strdocname
  'error handling is extremely important in making Excel work with Word
  On Error Resume Next
  'GetObject needs two parameters. The first is optional
  Set objwdapp = GetObject(, &quot;Word.Application&quot;)
  If Err.Number = 429 Then
  Err.Clear
  'we create a new instance of MS Word
  Set objwdapp = CreateObject(&quot;Word.Application&quot;)
  End If
  'Our application is made visible
  objwdapp.Visible = True
  strdocname = &quot;C:\test.docx&quot;
  'we activate our MS Word instance
  objwdapp.Activate
  Set wddoc = objwdapp.Documents(strdocname)
  'we open MS Word file if it is not open
  If wddoc Is Nothing Then Set wddoc = objwdapp.Documents.Open(strdocname)
  wddoc.Activate
  '''''' this doesn't work''''''
  objSelection.GoTo wdGoToPage, wdGoToAbsolute, 5
  objSelection.TypeText &quot;Test&quot;
  wddoc.Range.Paste
  ''''''''''''''''''''''''''''''
  wddoc.SaveAs(&quot;C:\test1.docx&quot;)
  objwdapp.Quit
  'Here we free memory allocated to our two object variables
  Set wddoc = Nothing
  Set objwdapp = Nothing
  'The following line of code removes the selection of range A1:D4 in Excel
  Application.CutCopyMode = False
  objWorkbook.Close
  objExcel.Quit 
  </code></pre>
  <p>I also tried to insert the Excel part after a specific word, e.g.:</p>
  <pre><code>objSelection.InsertAfter &quot;testing&quot;
  </code></pre>
  <p>It also pastes the part in the first page.
  Has somebody an idea?</p>