• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Conditional formatting if cell is hyperlinked

dcdimon

New Member
Is it possible to set up conditional formating based on whether the contents of a cell are hyperlinked to something (document, web address..etc)? I have a list of purchase orders where some are linked to an image of the PO and others aren't. The ones that aren't are currently manually shaded a different color and have the text changed to a specific font with a bold format. I'd like to be able to have Excel do this for me based on whether a hyperlink is present. I've searched here and on the web and haven't found anything that specifically addresses this.


Is this possible using either conditional formating or a macro? I'm using Excel 2003. Thanks for any assistance.
 
this should help get you started

[pre]
Code:
Sub HyperlinkMarks()
Application.ScreenUpdating = False
For Each h In ActiveSheet.Hyperlinks
With h.Range
'List everything you want to
'do with the cell

.Interior.ColorIndex = 3 'Color red
End With
Next
Application.ScreenUpdating = True
End Sub
[/pre]
 
Back
Top