none
Cursor position after inserting Table in the word RRS feed

  • Question

  • Hi All, I Have a doubt.After inserting a table in word via code,i want to put the cursor in the next line after that table. with MoveDown(Unit:=Word.WdUnits.wdLine, Count:=1) will it possible.i have tried this.but its not going.. Can anyone tell the better way .. Thanks in advance
    Thursday, October 13, 2011 8:28 AM

Answers

  • What you can do to resolve this is placing a Bookmark, just after the Table, then with the following line you can jump to this bookmark:

    Selection.Goto What:=wdGoToBookmark, Name:="CursorAfterTable"
    

    Hope this helps,

     


    Daniel van den Berg | Washington, USA | "Anticipate the difficult by managing the easy"
    • Proposed as answer by wgmeisheid Thursday, October 13, 2011 8:52 PM
    • Unproposed as answer by wgmeisheid Thursday, October 13, 2011 8:52 PM
    • Proposed as answer by danishaniModerator Monday, November 28, 2011 10:27 PM
    • Marked as answer by danishaniModerator Wednesday, January 11, 2012 8:35 PM
    Thursday, October 13, 2011 4:27 PM
    Moderator
  • This will move to the end of the table and then to the paragraph below.

    Selection.EndOf Unit:=wdTable
    Selection.MoveDown

    I hope that helps.

    • Proposed as answer by wgmeisheid Thursday, October 13, 2011 8:52 PM
    • Marked as answer by danishaniModerator Wednesday, January 11, 2012 8:35 PM
    Thursday, October 13, 2011 8:48 PM

All replies

  • What you can do to resolve this is placing a Bookmark, just after the Table, then with the following line you can jump to this bookmark:

    Selection.Goto What:=wdGoToBookmark, Name:="CursorAfterTable"
    

    Hope this helps,

     


    Daniel van den Berg | Washington, USA | "Anticipate the difficult by managing the easy"
    • Proposed as answer by wgmeisheid Thursday, October 13, 2011 8:52 PM
    • Unproposed as answer by wgmeisheid Thursday, October 13, 2011 8:52 PM
    • Proposed as answer by danishaniModerator Monday, November 28, 2011 10:27 PM
    • Marked as answer by danishaniModerator Wednesday, January 11, 2012 8:35 PM
    Thursday, October 13, 2011 4:27 PM
    Moderator
  • This will move to the end of the table and then to the paragraph below.

    Selection.EndOf Unit:=wdTable
    Selection.MoveDown

    I hope that helps.

    • Proposed as answer by wgmeisheid Thursday, October 13, 2011 8:52 PM
    • Marked as answer by danishaniModerator Wednesday, January 11, 2012 8:35 PM
    Thursday, October 13, 2011 8:48 PM