The setup
- I have an Excel workbook stored on my hard drive.
- The structure is such that on the first sheet I have a list of the names of the other sheets in the same workbook (...which can be created or deleted).
- All the names on the list, on the first sheet, are supposed to be hyperlinks to the corresponding sheet in the workbook. So, by clicking the name on the first sheet you jump to the corresponding sheet.
- When a new sheet is created a macro creates also the new name on the list on the first sheet and makes a hypelink of it. This works. ...BUT... The links point to the stored version of the file, not to the open workbook! Clicking the links opens the stored file and not the one which is under work.
QUESTION: How to create a hyperlink that always points to the same open workbook and not to the stored copy of it?
You may try creating the hyperlink as a formula (via VBA, as you need). I am using the parameters you posted, this may need a little adjustment.
See
Official documentation
Example 1
Example 2
This (hopefully) answers your question. As a separate note, it still remains to be clarified why you see the behavior you see.