LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to insert Hyperlinks in MS Excel using report generation toolkit ?

Does anyone know how I can insert hyperlinks in MS Excel worksheet from Labview 7.0 using report generation toolkit.

I am generating the path of the file to be opened in my program and want to store it as a hyperlink in Excel worksheet.
0 Kudos
Message 1 of 2
(3,314 Views)
Without writing your own function, your best bet is running a macro using the Excel Run Macro.vi. You can insert the code into your template workbook, another open workbook, or import the code at runtime using the Excel Import Module.vi.

Here is the code you will need:

Sub AddHyperlink(strLoc As String, strAddr As String, strText As String)
Range("strLoc").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection, _
Address:="strAddr", TextToDisplay:="strText"
End Sub

Then place the three parameters in an array and wire to the parameters input.

Michael Munroe
Certified LabVIEW Developer
www.abcdef.biz
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 2 of 2
(3,314 Views)