How do you specify a specific worksheet to open for a MS Excel workbook using a hyperlink?

7

1

I have a MS Excel workbook with several worksheets.

Users are directed to this spreadsheet using a hyperlink in an e-mail.

Is there any way of expressing the hyperlink for getting the spreadsheet to open on a particular worksheet?

user17562

Posted 2008-09-18T11:43:34.417

Reputation:

Answers

4

If you create the link like the following it will work:

http://path/to/Workbook.xls#SheetName!a1 

Hobbo

Posted 2008-09-18T11:43:34.417

Reputation:

Excellent - this works. One thing to watch out for is if SheetName includes spaces, e.g., Sheet Name - make sure to form the link like this: http://path/to/Workbook.xls#%27Sheet Name'!a1

– None – 2008-09-19T06:50:28.480

1This doesn't work for me. Browser downloads file to disk ignoring hashed param, open dialog in excel ignores it too. – Frantisek Kossuth – 2012-12-17T14:41:46.317

1

I don't think that there is a way to do this directly.

A hyperlink can open a workbook, but it will always open to the sheet and cell that were selected when it was saved.

You could add a contents sheet with hyperlink formulas to the other sheets

=HYPERLINK("[Book1.xls]Sheet2!A10","My internal link text")

You will need to make sure that the workbook is save with the Contents sheet selected.

Robert Mearns

Posted 2008-09-18T11:43:34.417

Reputation: 404

1

This worked for me in Excel 2007:

I named the exact cell I wanted to open (by just selecting it and then typing the new name in the Name Box, which can be found to the top left).

Then the hyperlink goes [filename with full path]#[cellname] obviously without the brackets.

E.g. http://pathpart1/pathpart2/workbook.xlsm#OpeningCell

"OpeningCell" would be the name I'd given to the cell.

Note that it didn't matter which worksheet I was on when I last saved the file. With the hyperlink set up like this I get to the exact cell every time.

I hope this helps.

Steve Cornelius

Posted 2008-09-18T11:43:34.417

Reputation: 11

0

You could write a macro in VBA:

Private Sub SetWorksheet()
Worksheets("Worksheet1").Activate
End Sub

Swati

Posted 2008-09-18T11:43:34.417

Reputation: 101