Colour shapes when certain criteria is met on different excel tab

Twan1980

New Member
Joined
Aug 26, 2008
Messages
5
Hello,

I'm working on an excel and have two tabs:

Tab 1: in tab one I've added a picture (total ownership with all differtent owners of a plot of land) and on top of this picture i've drawn freeform (shapes) corresponding with the different ownership positions on this entire plot (let's say 40 different shapes). In the shapes i've added a textbox with the cadastral property number for each property.

Tab 2: In the second tab i've got the complete list of all cadastral property numbers, name of owner, price for which we want to obtain different cadastral properties etc. If a certain criteria is met, let's say in Kolom "H" is have the criteria "on" or "off" and the criteria is on for property number 530, I want the corresponding cadastral property in the shapes on tab 1 to get a different colour.

Is this possible and yes, how do I do this.

Hope you can help. PS: i;m working with excel 2003 and 2007.

Twan!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
With the Shape names in Column A and the toggle in Column H on Sheet2.
Place this code in the Sheet2 module.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Columns("H")) Is Nothing Then
        If UCase(Target) = "ON" Then
            Sheets("Sheet1").Shapes(Cells(Target.Row, "A")).Fill.ForeColor.SchemeColor = 2
        Else
            Sheets("Sheet1").Shapes(Cells(Target.Row, "A")).Fill.ForeColor.SchemeColor = 1
        End If
    End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,741
Messages
6,126,592
Members
449,320
Latest member
Antonino90

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top