creating new shape and opening hyperlink dialog

jjnelson81

New Member
Joined
Jul 9, 2007
Messages
9
I have been scouring the forums for an answer to this one.... it is possible that I am not thinking about the approach in the right way.

I have some code that is copying a set of template tabs (hidden in the workbook) and creating copies. In the code, I create a shape on a dashboard sheet. Ultimately, I want that shape to act as a button to the first tab in the newly created series of tabs.

My thought process was to simply have the hyperlink dialog open up and have the user select the new tab to navigate to.

I have seen examples of opening the hyperlink dialog box, but it only creates a link and does not associate it with the shape that was just created.

Any guidance is appreciated!
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi jjnelson81,

Hyperlink dialog can be opened as follows.
Code:
On Error Resume Next
Application.Dialogs(xlDialogInsertHyperlink).Show

To let user to select hyperlink destination, after selecting the copied shape, open the dialogue. Avoiding an error, "On Error Resume Next" is necessary.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,560
Members
449,089
Latest member
Motoracer88

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top