Share via

Conditional Formatting on Watermark

Anonymous
2017-09-25T18:43:57+00:00

Hi!

Is it possible to conditionally formatt a watermark. For example, I have a watermark displaying "Work In Progress" and I want it there when a specific cell (B14) equals "Under Evaluation". I would like the watermark to disappear when the cell displays other options.

I saw code that was similar to this, but was unable to modify it for my use.

Thanks.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2017-09-25T20:11:16+00:00

    You can use a Change event:

    Private Sub Worksheet_Change(ByVal Target As Range)

        '   Code goes in the Worksheet specific module

        Dim rng As Range

            '   Set Target Range, i.e. Range("A1, B2, C3"), or Range("A1:B3")

            Set rng = Target.Parent.Range("A1")

                 '   Only look at single cell changes

                If Target.Count > 1 Then Exit Sub

                '   Only look at that range

                If Intersect(Target, rng) Is Nothing Then Exit Sub

                '   Action if Condition(s) are met (do your thing here...)

                If Target.Value = "Work In Progress" Then

                        ActiveSheet.SetBackgroundPicture Filename:= _

                            "Add your image reference here"

                Else

                    ActiveSheet.SetBackgroundPicture Filename:=""

                End If

    End Sub

    Was this answer helpful?

    0 comments No comments