Edit=>Links dialog box-use code to display

G

Guest

I have a button that when pressed calls a subroutine. The sub unprotects two
worksheets, displays the Edit=>Links dialog box, then the user changes the
existing link (an Excel file) to a new link (an Excel file) and updates.
Then, the macro protects the two worksheets again and exits.

What is the code to show the Edit=>Links dialog box? I am using the
following code to display the dialog box. I can get it to work with many
other dialog boxes, but the Edit=>Links won't work.

Application.Dialogs(xlDialogPrint).Show

Thanks,

Robert
 
D

Dave Peterson

Application.Dialogs(xlDialogOpenLinks).Show
I have a button that when pressed calls a subroutine. The sub unprotects two
worksheets, displays the Edit=>Links dialog box, then the user changes the
existing link (an Excel file) to a new link (an Excel file) and updates.
Then, the macro protects the two worksheets again and exits.

What is the code to show the Edit=>Links dialog box? I am using the
following code to display the dialog box. I can get it to work with many
other dialog boxes, but the Edit=>Links won't work.

Application.Dialogs(xlDialogPrint).Show

Thanks,

Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top