ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ·Q½Ð°ÝÄæ¦ì¬ö¿ý³Ì¤j³Ì¤p­È±o³Ì¨Î°µªk

[µo°Ý] ·Q½Ð°ÝÄæ¦ì¬ö¿ý³Ì¤j³Ì¤p­È±o³Ì¨Î°µªk

°²³]§Ú¦³¤@­ÓÄæ¦ì A1
¸Ì­±ªº¼Æ¦r¬OÀH®É¦bÅܰʪº
¦pªG§Ú·Q§â³o­Ó¤£Â_Åܰʪº¼Æ¦rªº³Ì¤j­È°O¿ý¦b B1
³Ì¤p­È°O¿ý¦b B2

³o¼Ëªº¸Ü
¦ü¥GµL¥iÁקK¤@©w­n¥Î¨ì Timer ¥H¨C¬í (©Î¨C¦Ê²@¬í) ¨Ó¤£Â_¶]¤@¬q Sub

·|³y¦¨®Ä¯à§C¸¨ªº°ÝÃD

·Q½Ð±Ð¦³¨S¦³¤j¤j¦³§ó¦nªº°µªk¥i¥H´£¨Ñ ><
·PÁÂ !
¤p©f¦b¦¹¦V¦U¦ì¤j¤j¨D±Ð¤F Orz

¦^´_ 1# saleen

¤£¾å±o±z©Ò¿×¤@­ÈÅÜ°Ê,«üªº¬O¦h¤[Åܰʤ@¦¸
¦pªG¤@­ÈÅÜ°Ê,±zªº¤u§@ªí¤]µLªk¹B§@?

¦pªG¤£¬O¤@­ÈÅÜ°Ê
¸Õ¸Õ¬Ý¤U­±µ{¦¡½X
©ñ¦b¸ÓSheet¤º§Y¥i¨Ï¥Î
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2.     If Cells(1, 1) > Cells(1, 2) Then
  3.         Cells(1, 2) = Cells(1, 1)
  4.     ElseIf Cells(1, 1) < Cells(2, 2) Then
  5.         Cells(2, 2) = Cells(1, 1)
  6.     End If
  7. End Sub
½Æ»s¥N½X
PKKO

TOP

¦^´_ 2# PKKO


    hi ¤j¤j±z¦n
¨º¥i¥H¥u°w¹ï·í [A1] ³o­ÓÄæ¦ìÅÜ°Ê®É
¤~¥h°õ¦æµ{¦¡¶Ü ?
¤p©f¦b¦¹¦V¦U¦ì¤j¤j¨D±Ð¤F Orz

TOP

¦^´_ 2# PKKO


    ¤j¤j±z¦n : ¥i¥HÀ°¬Ý¤p©f³o¼Ë¼g¬°¤°»ò¨S§@¥Î¶Ü ?
Tes.rar (12.03 KB)
¤p©f¦b¦¹¦V¦U¦ì¤j¤j¨D±Ð¤F Orz

TOP

¥»©«³Ì«á¥Ñ PKKO ©ó 2015-1-9 14:45 ½s¿è

¦^´_ 4# saleen
Tes.rar (12.26 KB)
¤@¡B±zªºµ{¦¡­n©ñ¦b¸Ósheetªº¼Ò²Õ¤º¤~¦³®ÄªG
¤G¡B±zªºwith ¤£¯à³s±µµÛsheet,­n¤À¶}¦p¤U
¤T¡B¤£ÄÝ©ó¶}±Ò©ÎÀx¦s©ÎÃö³¬©Î§@¥Î¤¤ªºµ{¦¡Ãþ§O,¤£¤Ó»Ý­n©ñ¦bThisWorkbookªº¼Ò²Õ¤º
¥|¡B¤U­±ªº[B1]³oºØ¼gªk,¹Bºâ³t«×¤ñrange("B1")ÁÙºC,³Ì§Öªº¬Ocells(1,2),­Y±zªº¸ê®Æ®É±`¦bÅÜ,³Ì¦n¥Î³Ì§Ö³tªº¹B§@¤è¦¡
­Y«ü©wA1Åܰʤ~ÅÜ°Ê,¦p¤U½Ð¸Õ¸Õ¬Ý
  1. Private Sub Worksheet_Change(ByVal Target As Range)
  2.     If Target.Address <> "$A$1" Then Exit Sub
  3.     With Sheets("Sheet1")
  4.         If [B1] > [A1] Then
  5.             [B1] = [A1]
  6.         ElseIf [C1] < [A1] Then
  7.             [C1] = [A1]
  8.         End If
  9.     End With
  10. End Sub
½Æ»s¥N½X
PKKO

TOP

¦^´_ 5# PKKO


   ¤Ó·PÁÂ P ¤j¤F !!
³o´N¬O¤p©f·Q­nªº®ÄªG¤F , ®Ä²v¤S¦n ~ ·PÁ P ¤j ^^
Ãö©ó³o¦æ
If Target.Address <> "$A$1" Then Exit Sub
¬O«ü¥u¦³·í A1 Åܰʮɤ~·|°O¿ý¹ï§a
¨º¦pªG§Ú¦³¦h¶µªº¸Ü´N­n³o¼Ë¼g¹ï¤£¹ï
If Target.Address <> "$A$1" Then Exit Sub
If Target.Address <> "$A$2" Then Exit Sub
If Target.Address <> "$A$3" Then Exit Sub
¤p©f¦b¦¹¦V¦U¦ì¤j¤j¨D±Ð¤F Orz

TOP

¦^´_ 6# saleen
¦pªG³o¼Ë¼g,¥u­n¤£¬OA1´N·|¸õ¥X¤F®@
If Target.Address <> "$A$1" Then Exit Sub
If Target.Address <> "$A$2" Then Exit Sub
If Target.Address <> "$A$3" Then Exit Sub

¥²¶·­n§ï¦¨
  1. Select Case Target.Address
  2.     Case "$A$1"
  3.         MsgBox "!!"
  4.         
  5.     Case "$A$2"
  6.         MsgBox "!!"
  7.         
  8.     Case Else
  9.         Exit Sub
  10.     End Select
½Æ»s¥N½X
·íµMµ{¦¡¼gªk«D±`¦hºØ,¤]¥i¥H¥Îif +elseif
¦pªGCASE¸Ì­±°õ¦æµ{¦¡½X³£¬Û¦P,¤]¥i¥H¥ÎGOTO ©Î¬O CALL ¨Ó°õ¦æ¬Û¦Pµ{¦¡½X
PKKO

TOP

Wc.rar (13.21 KB) ¦^´_ 7# PKKO


    ©êºp¤F P ¤j
¤p©f¤S¦³°ÝÃD @@
¤p©fµo²{¦pªG¬O DDE °Ñ·Óªº¸Ü¦n¹³´N¤£·|IJµo³o­Ó worksheet_change ¨Æ¥ó...
¦Ó¥B¤£½×¬O§ì¥X value ÁÙ¬O¥h°Ñ·Ó value ³£¨S¿ìªkIJµo..
ªþ¤W°Ñ¦ÒÀɽРP ¤j¬Ý¬Ý
¤p©f¦b¦¹¦V¦U¦ì¤j¤j¨D±Ð¤F Orz

TOP

        ÀR«ä¦Û¦b : µêªÅ¦³ºÉ¡D§ÚÄ@µL½a¡AµoÄ@®e©ö¦æÄ@Ãø¡C
ªð¦^¦Cªí ¤W¤@¥DÃD