macro to change colour of Autoshape in Another Sheet

Q-D

New Member
Joined
Oct 26, 2009
Messages
16
Appologies for my ignorance but I am too new to Macros to figure this out myself. I have a speadsheet with sevral tabs on which each there is a tick box to mark as comple. Once pressed this links to a true false box which activates the macro to change the colour of an aurtoshape on the menu

What I have so far is :

Private Sub Worksheet_Deactivate()
Application.ScreenUpdating = False
If Range("N110") = "True" Then
Sheets("Menu").Select
ActiveSheet.Shapes("Text Box 53").Select
Selection.ShapeRange.Fill.ForeColor.SchemeColor = 57
Selection.ShapeRange.Fill.Visible = msoTrue
Selection.ShapeRange.Fill.Solid

ElseIf Range("N110") = "False" Then
Sheets("Menu").Select
ActiveSheet.Shapes("Text Box 53").Select
Selection.ShapeRange.Fill.ForeColor.RGB = RGB(128, 0, 0)
Selection.ShapeRange.Fill.Visible = msoTrue
Selection.ShapeRange.Fill.Solid

End If
End Sub


This "Works" however I dont want to have to visit the menu tab I want something like:

Sheets("Menu").Shapes("Text Box 53").ShapeRange.Fill.ForeColor.SchemeColor = 57

Which would just change the colour without visitng/selecting the Sheet and Shape but I am unsure how to make this happen. Any help would be much appreciated.

Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,224,574
Messages
6,179,628
Members
452,933
Latest member
patv

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