Hi,
I have written an excel makro, thats supposed to get executed when a "1" is written in a cell. I dont write the "1" in there manually, a secound program does this. I used this code
this works fine If I enter the "1" manually in the cell, but when the other program changes the cells value to "1" it doesnt work. Why is that and how would I fix it?
I have written an excel makro, thats supposed to get executed when a "1" is written in a cell. I dont write the "1" in there manually, a secound program does this. I used this code
Code:
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Address = "$G$2" Then
If Target.Value = 1 Then
call makro1
End If
End If
End Sub
this works fine If I enter the "1" manually in the cell, but when the other program changes the cells value to "1" it doesnt work. Why is that and how would I fix it?