- ©«¤l
- 522
- ¥DÃD
- 36
- ºëµØ
- 1
- ¿n¤À
- 603
- ÂI¦W
- 0
- §@·~¨t²Î
- win xp sp3
- ³nÅ骩¥»
- Office 2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2012-12-13
- ³Ì«áµn¿ý
- 2021-7-11
|
ÁÂÁ¤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)¶Ü? |
|