I hear this can be very difficult but I want to be having a macro run automatically depending on the contents of a cell, the cell includes a formula. I did find a working example somewhere, but for the life of me I can't find it again - anyway to the point
When I mess with the Width and Height, it changes the spec. In Cell Q25, I have a little OR formula for when the is Spec J and K to give TRUE and FALSE. My code is to run A macro if Q25 changes from True to False, and visa versa. Unfortunately nothing is happening.
Any help would be much appreciated.
When I mess with the Width and Height, it changes the spec. In Cell Q25, I have a little OR formula for when the is Spec J and K to give TRUE and FALSE. My code is to run A macro if Q25 changes from True to False, and visa versa. Unfortunately nothing is happening.
Any help would be much appreciated.
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_exit:
Application.EnableEvents = False
If Not Intersect(Target, Me.Range("Q25")) Is Nothing Then
With Target
If .Value = True Then
Application.Run "'Tube Motor Matrix - Master.xls'!Show27"
Else
If .Value = False Then
Application.Run "'Tube Motor Matrix - Master.xls'!Hide27"
End If
End With
End If
ws_exit:
Application.EnableEvents = True
End Sub
Last edited: