Results 1 to 3 of 3
  1. #1
    New Lounger
    Join Date
    Nov 2001
    Location
    Australia
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VBA code to paste Excel data to Word (Office 2000)

    I am trying to Paste data ( Table) from an Excel workbook to the end of a Word document . I am using - "Selection.EndKey Unit:=wdstory" to locate the end of the Word document, but the Macro won't recognise the code. Can anyone help? Full VBA code attached.

  2. #2
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Brisbane, Queensland, Australia
    Posts
    352
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: VBA code to paste Excel data to Word (Office 2000)

    For a start, I think this line

    'Documents.Open Filename:="C:MyDocumentsTime.doc"
    should start with a dot, not a comment mark, otherwise you do hot have an open document to work with.
    David Grugeon
    Brisbane Australia

  3. #3
    Platinum Lounger
    Join Date
    Dec 2000
    Location
    Hornsby Heights, New South Wales, Australia
    Posts
    3,822
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: VBA code to paste Excel data to Word (Office 2000)

    Brian, please do NOT triple-post, not even double-post !
    Cheers, Claude.

Posting Permissions

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