Automatic updating of Hyperlink to a variable sheetname

aerodan

New Member
Joined
Sep 8, 2011
Messages
2
Hi all, new to the forum. Already learned a lot. I'v tried scouring through existing posts to find something like this problem of mine. Hoping someone can help...

Basically I have a workbook made up of the following:
A Summary sheet and a number of user populated forms.

A macro "CreateNewForm", creates a new worksheet (copied from a blank form) that a user then populates. The form contains an embedded macro that changes the sheet name automatically when you change the value of Cell(Q6).

The "CreateNewForm" macro also inserts a new row to the Summary sheet with the data from the newly created form. In the Summary sheet, Cell(B11) is linked to the new sheet, initially via =new!Q6

Then, as you change the name of the new sheet to any other string, eg. 'A 01 01' , the Summary sheet also updates Cell(B11) to ='A 01 01'!Q6.

So far so good.

Now I want to hyperlink Cell(B11) in the Summary to the the new sheet. However the sheet name can change depending on the user.

I can make my "CreateNewForm" macro to add a hyperlink to Cell(B11) on the Summary sheet however I don't know how to get the hyperlink (address) to update as the user changes the name of the destination sheet.

Is this even possible? Any help is approeciated.
Many thanks for your time!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Thanks for the reply Andrew. Not sure I understand though. The destination cell is any cell on a sheet whose sheetname is variable. Are you saying I need to Insert|Name|Define the sheet? Can this be automated as each new form is created?
 
Upvote 0
How can you have a hyperlink to "any cell". Try using the HYPERLINK function:

=HYPERLINK("#"&new!Q6,"Click me")
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,463
Members
452,915
Latest member
hannnahheileen

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