+ Reply to Thread
Results 1 to 2 of 2

objWord.Selection.Goto 'my bookmark' and paste excel table

  1. #1
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    objWord.Selection.Goto 'my bookmark' and paste excel table

    Dear All,

    Anybody experience with this command line:
    objWord.Selection.Goto.......
    Then I would want it to go to a certain bookmark in my Word document and there paste my Excel table (formatting preserved ofcourse).

    I know you can paste values to Word bookmarks like this:

    Please Login or Register  to view this content.
    But I want to have the entire table in not only the text. So more like a picture or html.
    Therefore I was looking into the possibility to put the cursor to the desired bookmark with objWord.Selection.Goto (in this case bookmark "Text12")
    and from there paste my table with:

    Please Login or Register  to view this content.
    This pasting works I already tried but it is pasting it at the beginning of the document if I can't tell it where it should paste it....

    Any help would be greatly appreciated!
    Thanks.

  2. #2
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    822

    Re: objWord.Selection.Goto 'my bookmark' and paste excel table

    Ok looks like today I spend lots of time on things, ask for help here and 15 minutes later I find a solution....

    I fixed it with:
    Please Login or Register  to view this content.
    As you see the solution was very simple...(isn't it always )

    However a new problem arose.
    When I paste as picture it will not wrap over word document pages because it is a picture.
    This looks ofcourse very strange if you have a lot of blank lines below the first text lines and the picture of the excel table.
    Also....if i would get it to wrap then probably I will loose the headings for page 2 , 3 etc...
    Anybody an idea how I could fix this?
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1