Thank you so much, I am not sure what I was doing wrong before but this works exactly as I dreamed!!!
I figured out that my beforedoubleclick will not trigger the change event, is there an easy solution to set a beforedoubleclick event in the "target, range" to trigger the change event? Or maybe I am asking too much of this spreadsheet. Below is my code for both the beforedoubleclick and for the change event.
BeforeDoubleClick
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Not Intersect(Target, Range("E7:F10,E12:E15,E17:F18,E20,E26,L7:M8,L9,L12:M13,L14,L17,L24")) Is Nothing Then
Application.EnableEvents = False
If ActiveCell.Value = "X" Then
ActiveCell.ClearContents
Else
ActiveCell.Value = "X"
End If
Cancel = True
End If
Application.EnableEvents = True
End Sub
Event change
Private Sub Worksheet_Change(ByVal Target As Range)
Dim x, y, sh As Worksheet
If Not Application.Intersect(Target, Me.Range("E7:F7")) Is Nothing Then ' indicates the Target range
Set sh = Sheets("Final Sheet")
x = IIf(Range("E7") = "X", 1, 0)
y = IIf(Range("F7") = "X", 1, 0)
With sh
.Shapes.Range(Array("LFTO")).Visible = x
.Shapes.Range(Array("RFTO")).Visible = y
End With
End If
End Sub
Again thank you so much that was a problem I was working on for quite sometime and no other solutions worked, the change event was the perfect solution.
Kyle
Bookmarks