Private Sub Worksheet_Calculate()
If (Range("P1").Value > Range("Q1").Value) And flag = True Then
CreateObject("Wscript.shell").Popup "OOOOO=>大筆成交 " & (Range("P1").Value)
Cells(1, 13).Interior.ColorIndex = 2
flag = False
End If
If (Range("Q6").Value > Range("R1").Value) And flag = True Then
CreateObject("Wscript.shell").Popup "xxxxxxx=>量能放大 " & (Range("Q1").Value)
Cells(1, 13).Interior.ColorIndex = 2
flag = False
End If
End Sub作者: GBKEE 時間: 2012-10-24 21:56