By FollowHyperlink I can open a web page with a Fragement Identifier (i.e. with an ending part after a '#' sign pointing to a specific portion of the web page).
Works lika a charm.
However if I try the same thing for a file URL for example the same web page stored as a file on C:\ it does not work. The Fragment identifier is completely ignored. My default browser opens the page, but ignores the fragment identifier.
Is this a known bug/limitation?
Is there some work-around?
Here is a code snippet for illustration. My default browser (both IE and Chrome) ignores myFragment. I don't think it is passed on at all:
Option Explicit Private Sub CommandButton1_Click() Dim aFile As String aFile = "C:/myFile.html#myFragment" ActiveWorkbook.FollowHyperlink aFile, NewWindow:=True End Sub