Private Sub Worksheet_Calculate()
Dim Target As Range
Set Target = Range("C1")
' If Not Intersect(target, Range("C1")) Is Nothing Then
If Target.Value = "YES" Then
' Run my VBA code
MsgBox "Worksheet_Calculate is Activvated!"
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
' If Not Intersect(target, Range("C1")) Is Nothing Then
If Target.Address = "$C$1" Then
' MyMacro()
MsgBox "Worksheet_Change = " & Target.Address
End If
End Sub§@ªÌ: c_c_lai ®É¶¡: 2016-5-2 12:38
·íµo¥Í¨Æ¥óIJ°Ê,
Set Rng = [H:H].SpecialCells(xlCellTypeFormulas, 2) '§ì¨ú¤½¦¡¤¤ªº[¤å¦rÈ]Àx¦s®æ
¦A¥Î
For Each xR in Rng
³v¤@°O¿ý
next§@ªÌ: ketrddem ®É¶¡: 2016-5-2 14:41
¤p§Ì¤S·Q¥X¸Ñªk¤F
¤G¼h°j°é
FOR I TO LOSTROW
FOR J TO LOSTCOLUMN
IF CELLS(I,J).VALUE = "YES"
MSGBOX "ªÑ¸¹" & CELLS(I,1).VALUE & "²Å¦X±ø¥ó" & CELLS(1,J).VALUE
END IF
NEXT
NEXT