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

[µo°Ý] ¨D°ª¤â¸Ñµª¨Ì±ø¥ó¿ë§O¦Û°Ê¿é¤JÀx¦s®æ

ª©¥D¤j¤j±z¦n¡A¥»¨Ó¥H¬°³o¥Î²[¼Æ´N¥i¥H·d©w¡A§Ú¤£·|¥¨¶°¡A¦ýÁÙ¬O¸ÕµÛ§ï¬Ý¬Ý¡A¼W¥[¤F­ì¨Ó§Æ±æ¡G¦pªG¤U©Ô¿ï«O¤ºor¤G­×¡AB2¡BC2¡BD2³£¦Û°Ê¶ñ¤W--¡A¥H«K°µ¬°¤£¦¬¶O´£¿ô¡A¦ý¬O§ï¹L«á©Ç©Çªº¡A¤U©Ô¿ï«O¥~or¤H¬°¡A¤£·|·Ó­ì¨Óªº³]©w¨º¼Ë¡A½Ð±Ð§Ú

ºû­×³æ.rar (16.02 KB)

robin

TOP

¦^´_ 10# GBKEE

¤Ñ°Ú¡I§Ú­ì¨Ó¥H¬°³o¥u»Ý­n¥Î²[¼Æ´N¯à¸Ñ¨M¡A¨S·Q¨ì¬O¥¨¶°¡A§Ú¨S¾Ç¹L¡A
¤£¹L§Ú¸Õ¹L¡A¬O¥i¥H¥Î¡A¥u¬O­ì¨Ó§Æ±æ¿ï«O¤º©Î¤G­×®É¡AB  C  D³£¶ñ¤W--¡A²{¦b¥u¦³B¶ñ¤W
¤Ó¯«©_¤F¡A¥u­n´X¦æ¦r´N¯à·d©w
´N©È§Ú¤£ª¾©Ò¥HµM¡AÀ³¥Î¨ì¨ä¥¦¦a¤è¦³§xÃø

¦ý¬O¡AÀ³¸Ó¹ïÀ´ªº¤H«Ü¦³¥Î¡A¤]¬O¦n¨Æ¡I
robin

TOP

ÁÂÁ¤j¤j¦b¦Ê¦£¤¤¦A¦¸«ü¾É,
¦ý¬O³o¸Ì¥Îªº¬OTarget
   ¡i Option Explicit
    Sub Ex()  '°õ¦æ¦¹µ{¦¡·|IJ°Ê Worksheet_SelectionChange(ByVal Target As Range)
        [D5:E6].Select
    End Sub
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)   'Target-> [D56]
        Dim i
        MsgBox Target.Address
        For i = 1 To Target.Count
            MsgBox "Target.Cells(" & i & ") ->" & Target.Cells(i).Address '=> MsgBox Target.(i).Address
        Next
        [B6].Select
    End Sub¡j

¦Ó3¼Ó¥Î¤F Target ¤Î Target(1)

§Ú·Q°Ýªº¬OTarget¬O¤£¬OIJ°Ê Worksheet_SelectionChangeªº¶°¦X(°}¦C),
¦ÓTarget(1)¬O³o¶°¦X(°}¦C)ªº²Ä¤@­Ó¤¸¯À?

¤]´N¬O»¡¦ó®É¥ÎTarget, ¦ó®É¥ÎTarget(1)? ¦³¥i¯àTarget(2)¶Ü?

TOP

        ÀR«ä¦Û¦b : «Î¼e¤£¦p¤ß¼e¡C
ªð¦^¦Cªí ¤W¤@¥DÃD