I have the following code that will automatically hyperlink cells in column A starting at row 5, to the same named file in a folder. I would like this to only do this based off of what the Value in column B of the same row would be. I am trying to figure out and if statement so it will only hyperlink in rows which column B = "Blue". Any guidance would be great
Dim cell As Range
For Each cell In Range(Range("A5"), Range("A5").End(xlDown)) ActiveSheet.Hyperlinks.Add cell, "L:\Supplier Invoices\Blue Invoices" & cell.Value & ".pdf"
Next End Sub
I cannont figure out where how to accomplish this.
