Private Sub Worksheet_Calculate()
Àˬd
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
Àˬd
End Sub
Sub Àˬd()
Dim n, sz1, str As String
sz1 = Range("c2:C111")
str = ""
For i = 1 To UBound(sz1)
If Val(SZ(i, 1)) = 0# Then '--->¿ù¦b¦¹¦æ
If Val(sz1(i, 1)) <> 0# Then str = str & vbCrLf & i + 1 & "===" & i + 1 & "=" & Sheets("Sheet3").Cells(i + 1, 2).Value
Else
n = Round((Val(sz1(i, 1)) - Val(SZ(i, 1))) / Val(SZ(i, 1)) * 100, 2)
If Abs(n) >= 1 Then str = str & vbCrLf & Sheets("Sheet3").Cells(i + 1, 2).Value & "===>" & n
End If
Next i
If Len(str) > 0 Then
SZ = Range("C2:C111")
' MsgBox str, , "´£¥Ü"
CreateObject("Wscript.shell").Popup "" & str, 1, "Auto Closed MsgBox", 64
End If
END SUB
'============= |