Is there a way so the Edit Hyperlink box always opens on the 'Place in This Document' section?

This is admittedly a fiddly question. 

I have a document where I need to change a large number of external hyperlinks so they point to other pages in the document.

Whenever I right click on a hyperlink and then select 'Edit Hyperlink' in the box that appears it always opens on the 'Link To: Existing Webpage' sub-window.  Is there a way to set things so 'Edit Hyperlink' always opens on 'Place Within This Document' instead? 

Doesn't seem like much, but I'm wondering if I can save myself a ton of little clicks over the long run.
As far as I know, you can't control Word's behavior when you open a dialog box.
Stefan Blom
MS 365 Word MVP since 2005
Volunteer Moderator
MS 365, Win 11 Pro
~~~
Note that I do not work for Microsoft
https://mvp.microsoft.com/
~~~
Please specify Word version & OS in your question

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Sometimes -- but not always -- when a dialog box refuses to cooperate, you can beat it into submission with the SendKeys command in a macro. This acts as if you're hitting keys on the keyboard, and lets you (try to) use the accelerators, the underlined letters on buttons.

This macro (see http://www.gmayor.com/installing_macro.htm if needed) works for two out of the three ways of opening the Insert > Hyperlink dialog:

Sub InsertHyperlink()
    SendKeys "%a": Dialogs(wdDialogInsertHyperlink).Show
End Sub

The specific macro name InsertHyperlink causes it to run instead of the built-in command. It puts the Alt+a keystroke into the keyboard buffer and then displays the dialog. I find that the accelerator works correctly if I click the Hyperlink button on the Insert ribbon, or if I put a button on the Quick Access Toolbar that runs the macro. However, if I use the keyboard shortcut Ctrl+K to invoke the command, the dialog displays but ignores the SendKeys (although pressing Alt+a after the dialog appears does work).
_____________________________
https://jay-freedman.info

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated October 5, 2021 Views 165 Applies to: