lydiapenrose
New Member
- Joined
- Nov 7, 2011
- Messages
- 22
Hello!
I have a bunch of text conditionally formatted to appear when a certain cell (J9) = "Yes". However, I also have three ActiveX checkboxes floating there that I would like to have the same conditional formatting for. The checkboxes are named "GxP", "SOX" and "Privacy".
From my research, it looks like it would require a simple macro that runs every time someone edits the page? Could someone please help me? My skills are quite basic when it comes to macros and I can't figure it out.
I tried the below code, because the checkboxes are the only activex controls that I am using but something seems to be wrong as it's not working...
I have a bunch of text conditionally formatted to appear when a certain cell (J9) = "Yes". However, I also have three ActiveX checkboxes floating there that I would like to have the same conditional formatting for. The checkboxes are named "GxP", "SOX" and "Privacy".
From my research, it looks like it would require a simple macro that runs every time someone edits the page? Could someone please help me? My skills are quite basic when it comes to macros and I can't figure it out.
I tried the below code, because the checkboxes are the only activex controls that I am using but something seems to be wrong as it's not working...
Code:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Range("J9").Value = "Yes" Then
ActiveWorkbook.DisplayDrawingObjects = xlHide
End If
End Sub