I have a macro that creates a hyperlink anchored to some text, using a variable named "URL", like this.
I want to use conditional formatting to highlight a cell if URL has a particular value; e.g., if URL = "http://www.mydomain.com/mypage?parameter=" (i.e., [A1] = null.)
I tried using this ...
Code:
URL = "[URL]http://www.mydomain.com/mypage?parameter[/URL]=" & [A1]
ActiveSheet.Hyperlinks.Add Anchor:=[C3], _
Address:=URL, TextToDisplay:="MyText"
I tried using this ...
Code:
=URL="[URL]http://www.mydomain.com/mypage?parameter="[/CODE[/URL]]
... as the conditional formatting formula, but it didn't work. How do I make this work?