D
Dave Jenkins
I want to create a hyperlink in an Excel cell that goes to a specific
location in a Word document. But I don't want to change the document by
inserting a bookmark or anything else. I will use VSTO 2005 SE to capture the
location in Word and create the hyperlink in Excel.
I can do exactly what I want manually in Word 2007 and Excel 2007 using
drag-and-drop. If I drag and drop the selected text from Word to Excel, using
the right mouse button, and choose the "Create hyperlink here" option, the
cell will have a hyperlink that does exactly what I want.
But I can't figure out the format of the hyperlink. An example hyperlink is
"c:\example.doc# 1,12204,12210,94,,Note 1". Is this format documented
anywhere? I know the 12204 and 12210 parameters are a Range.Start and a
Range.End. The "Note 1" parameter is the text I selected. But what are the
rest of the parameters? Thanks for any help.
location in a Word document. But I don't want to change the document by
inserting a bookmark or anything else. I will use VSTO 2005 SE to capture the
location in Word and create the hyperlink in Excel.
I can do exactly what I want manually in Word 2007 and Excel 2007 using
drag-and-drop. If I drag and drop the selected text from Word to Excel, using
the right mouse button, and choose the "Create hyperlink here" option, the
cell will have a hyperlink that does exactly what I want.
But I can't figure out the format of the hyperlink. An example hyperlink is
"c:\example.doc# 1,12204,12210,94,,Note 1". Is this format documented
anywhere? I know the 12204 and 12210 parameters are a Range.Start and a
Range.End. The "Note 1" parameter is the text I selected. But what are the
rest of the parameters? Thanks for any help.