Moving bookmarks

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Moving bookmarks

Post by Rudi »

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
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.

User avatar
HansV
Administrator
Posts: 78629
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Moving bookmarks

Post by HansV »

Using VBA is the only way I know:

Code: Select all

Sub MoveBookmark()
    With ActiveDocument.Bookmarks("Test")
        .End = .End + 1
        .Start = .Start + 1
    End With
End Sub
Replace Test with the name of your bookmark.
Best wishes,
Hans

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Moving bookmarks

Post by Rudi »

What will we do without VBA????

Thanks it works well.
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
HansV
Administrator
Posts: 78629
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Moving bookmarks

Post by HansV »

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.
Best wishes,
Hans

User avatar
StuartR
Administrator
Posts: 12629
Joined: 16 Jan 2010, 15:49
Location: London, Europe

Re: Moving bookmarks

Post by StuartR »

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


User avatar
HansV
Administrator
Posts: 78629
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Moving bookmarks

Post by HansV »

Good point, I always forget about that keyboard shortcut! :thankyou:

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

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Moving bookmarks

Post by Rudi »

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.
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
stuck
Panoramic Lounger
Posts: 8191
Joined: 25 Jan 2010, 09:09
Location: retirement

Re: Moving bookmarks

Post by stuck »

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

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Moving bookmarks

Post by Rudi »

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!
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.