Hi
I've searched the site and found some cool code, below, which based on a value entered into a cell will run a macro
Well I haven't got that far yet, I thought I would makes sure I could get it to work with the message box first. I pasted the code in entered a value in the cell and the message box appeared, great.
But the cell I want to link it to is not manually updated it is updated via a "spinner" on the forms toolbar and when the spinner updates the value, the message box does not appear.
Which I also find a bit odd as i have to make sure the cell is unlocked on a protected sheet for it to update, which made me think it was bound to work for this.
Does anyone know how to overcome this?
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Not Application.Intersect(Target, Range("M1")) Is Nothing Then
If Target.Value < 5 Then
MsgBox "replace this line with your macro"
End If
End If
End Sub
Thanks
Wayne
I've searched the site and found some cool code, below, which based on a value entered into a cell will run a macro
Well I haven't got that far yet, I thought I would makes sure I could get it to work with the message box first. I pasted the code in entered a value in the cell and the message box appeared, great.
But the cell I want to link it to is not manually updated it is updated via a "spinner" on the forms toolbar and when the spinner updates the value, the message box does not appear.
Which I also find a bit odd as i have to make sure the cell is unlocked on a protected sheet for it to update, which made me think it was bound to work for this.
Does anyone know how to overcome this?
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Not Application.Intersect(Target, Range("M1")) Is Nothing Then
If Target.Value < 5 Then
MsgBox "replace this line with your macro"
End If
End If
End Sub
Thanks
Wayne