Hyperlink not working because I have single quotes in the Workbook name

kristiguerrero

New Member
Joined
Mar 1, 2013
Messages
1
I'm trying to get the hyperlink function to link to another worksheet within my excel file. This is what I have right now;

=HYPERLINK("#'" & D1 & "'!" & B4,"click me")

where D1 contains the workbook name and B4 has the cell address. I've tried it with another worksheet in my file and it's fine, so I know the formula works, but the name of the worksheet I want to have the link go to already contains single quotations and I'm sure that's why it's not working. My co-worker created the workbook and has the worksheet named for the dimensions of what we are designing.

Example: 18' deck

So single quotes are needed.

Is there any go around to have this work?


Also, I tried just linking it through the hyperlink dialog box, but if I save and close the workbook and open it again it gives me the "Reference not valid" error still.

Any help is much appreciated.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Can you not use a macro to select the sheet?

Code:
Sub SheetSelect()
Dim strName As String
 
strName = Range("D1")
Sheets(strName).Select


End Sub
 
Upvote 0

Forum statistics

Threads
1,223,714
Messages
6,174,054
Members
452,542
Latest member
Bricklin

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