Hi,
Is there a way to move bookmarks in a document without having to delete them and recreate them in another position?
For example, in the image attached:
I want a space between the table and the bookmark...
- If I place my cursor in the green spot and enter, it adds a row to the table
- If I place my cursor in the pink spot, it adds a paragraph and my text moves down, but the bookmark stays in the same position below the table
How can I get a space between the table and the bookmark, without deleting it and recreating it next to the heading "Bookmark Location"
TX
Moving bookmarks
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Moving bookmarks
You do not have the required permissions to view the files attached to this post.
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Administrator
- Posts: 78629
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Moving bookmarks
Using VBA is the only way I know:
Replace Test with the name of your bookmark.
Code: Select all
Sub MoveBookmark()
With ActiveDocument.Bookmarks("Test")
.End = .End + 1
.Start = .Start + 1
End With
End Sub
Best wishes,
Hans
Hans
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: Moving bookmarks
What will we do without VBA????
Thanks it works well.
Thanks it works well.
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Administrator
- Posts: 78629
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Moving bookmarks
Without VBA:
- If the table is at the top of the document, press Ctrl+Home.
- Otherwise, click at the end of the paragraph above the table.
- Press Enter to insert an empty paragraph mark above the table.
- Click in the table.
- Press Alt+Num 5 (i.e. 5 on the numeric keypad) to select the entire table.
- Press Ctrl+X to cut the table to the clipboard.
- Click in the empty paragraph that you created.
- Press Ctrl+V to paste the table.
- You have now effectively inserted an empty paragraph below the table.
- Click after the bookmark and press Delete.
- If the table is at the top of the document, press Ctrl+Home.
- Otherwise, click at the end of the paragraph above the table.
- Press Enter to insert an empty paragraph mark above the table.
- Click in the table.
- Press Alt+Num 5 (i.e. 5 on the numeric keypad) to select the entire table.
- Press Ctrl+X to cut the table to the clipboard.
- Click in the empty paragraph that you created.
- Press Ctrl+V to paste the table.
- You have now effectively inserted an empty paragraph below the table.
- Click after the bookmark and press Delete.
Best wishes,
Hans
Hans
-
- Administrator
- Posts: 12629
- Joined: 16 Jan 2010, 15:49
- Location: London, Europe
Re: Moving bookmarks
You can reduce the number of keystrokes a little by typing Alt-Shift-UpArrow to move the table up one paragraph after you have selected it. This avoids the copy, click, paste combination.
StuartR
-
- Administrator
- Posts: 78629
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Moving bookmarks
Good point, I always forget about that keyboard shortcut!
So:
- If the table is at the top of the document, press Ctrl+Home.
- Otherwise, click at the end of the paragraph above the table.
- Press Enter to insert an empty paragraph mark above the table.
- Click in the table.
- Press Alt+Num 5 (i.e. 5 on the numeric keypad) to select the entire table.
- Press Alt+Shift+Up Arrow to move the table up one paragraph.
- You have now effectively inserted an empty paragraph below the table.
- Click after the bookmark and press Delete.
So:
- If the table is at the top of the document, press Ctrl+Home.
- Otherwise, click at the end of the paragraph above the table.
- Press Enter to insert an empty paragraph mark above the table.
- Click in the table.
- Press Alt+Num 5 (i.e. 5 on the numeric keypad) to select the entire table.
- Press Alt+Shift+Up Arrow to move the table up one paragraph.
- You have now effectively inserted an empty paragraph below the table.
- Click after the bookmark and press Delete.
Best wishes,
Hans
Hans
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: Moving bookmarks
OK... You got me...so there is always a "jippo" way to get things done. :)
Many thanks for your support. It is always greatly appreciated.
Many thanks for your support. It is always greatly appreciated.
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Panoramic Lounger
- Posts: 8191
- Joined: 25 Jan 2010, 09:09
- Location: retirement
Re: Moving bookmarks
I would have added a new row to the table, split the table and then deleted the redundant row.
Don't know if that is any less clicks or not.
Ken
Don't know if that is any less clicks or not.
Ken
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: Moving bookmarks
That just might possibly work too. I did not think about splitting the table.
Although the previous replies solved my issue, this is worth a mention too. TX stuck!
Although the previous replies solved my issue, this is worth a mention too. TX stuck!
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.