Macro to Hyperlink Tab to a defined name

Revnou

New Member
Joined
Apr 21, 2023
Messages
10
Office Version
  1. 2013
Platform
  1. Windows
Hi Everyone,

Anyone can assist with a Macro? I defined a cell an excel book (usually it is only on sheet ) and create a tab with the exact name based on the define name. How do I create a hyperlink based on the tab's name back to the define name?

For Example.
I am in worksheet "Peet_A".
The define Cell is somewhere in the workbook.

If I am in worksheet "Peet_A" and I select cell A1, how do I put a hyperlink in cell A1 to the define name "Peet_A" that is somewhere located in the workbook. Same situation, if I am in cell B33 in "Peet_A", how do I hyperlink back to the define name?

Usually, my define name is only on one spread sheet. The spreadsheet is very long and I tend to loose my place. To have a tab automatically hyperlink to the define name helps. Thanks.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Why not create a Macro and assign a shortcut key to take you to the named range. Does not need to know the sheet name.
Like this:
VBA Code:
Sub Goto_Me()
Application.Goto Range("Master")
End Sub
 
Upvote 0
Why not create a Macro and assign a shortcut key to take you to the named range. Does not need to know the sheet name.
Like this:
VBA Code:
Sub Goto_Me()
Application.Goto Range("Master")
End Sub

Hi,

Thank you for taking time to reply. The problem is when I get back to the page that has the range of data, I keep having to do control F to find my place again. I was hoping to avoid that. 😅
 
Upvote 0
Hi,

Thank you for taking time to reply. The problem is when I get back to the page that has the range of data, I keep having to do control F to find my place again. I was hoping to avoid that. 😅
You said:
The problem is when I get back to the page that has the range of data,
We do not refer to them as pages we refer to them as sheets.

So I thought you always wanted to get to the range named something I used "Master" . So where was your place . when you use control F what are you trying to fine? I dont see how control F can fine the last place where you were.
 
Upvote 0
You said:
The problem is when I get back to the page that has the range of data,
We do not refer to them as pages we refer to them as sheets.

So I thought you always wanted to get to the range named something I used "Master" . So where was your place . when you use control F what are you trying to fine? I dont see how control F can fine the last place where you were.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,964
Members
452,371
Latest member
Frana

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