I am trying to create a VBA to look in cell E for Monday, and then open the Hyperlink that is in the cell next to it in D.
I have tried the below But it is not working. Nothing is happening when I run it. The files are on my network that the hyperlinks are attached to.
Sub OpenFile()
Dim oH As Hyperlink
For Each oH In Hyperlinks
If oH.Range.Cells(1, 2).Text = "Monday" Then If Dir(oH.Address) > "" Then Workbooks.Open oH.Address
Next
End Sub