I'm writing a very simple HTML file that contains some tables. I'm trying to have a cell value, which is basically a link. by clicking on the link I'd like to open a file in an excel application in a specific sheet and row.
Notes:
- windows environment
- HTML is opened by a standard browser
- the file exists locally (simple path: C:\test.xlsx)
- excel application path is unknown
- I'd like to keep the HTML file as simple as possible. good design is not a top priority. just need to make it happen.
- (low priority) if excel instance (for a specific file) is already open, I'd like to change the active sheet and highlight the row in the open instance
I solved it using javascript:
usage example:
source: http://support.microsoft.com/kb/197922