Hi,
The macro below is intended to make a clickable hyperlink to all open files in the source spreadsheet. It works fine in Excel 2010 but not at all in Excel 2016 - I think because 2016 uses separate instances of Excel. Can someone assist with a re-write to make it work in Excel 2016? Thanks so much in advance.
The macro below is intended to make a clickable hyperlink to all open files in the source spreadsheet. It works fine in Excel 2010 but not at all in Excel 2016 - I think because 2016 uses separate instances of Excel. Can someone assist with a re-write to make it work in Excel 2016? Thanks so much in advance.
VBA Code:
Dim wb As Workbook
Dim i As Long
With Sheet1.Range("A:A")
.ClearContents
i = 0
For Each wb In Application.Workbooks
If wb.Windows(1).Visible Then
i = i + 1
Cells(i, 1).FormulaR1C1 = "=hyperlink(" & Chr(34) & wb.Path & "\" & wb.Name & Chr(34) & ")"
End If
Next wb
End With