- ©«¤l
- 835
- ¥DÃD
- 6
- ºëµØ
- 0
- ¿n¤À
- 915
- ÂI¦W
- 16
- §@·~¨t²Î
- Win 10,7
- ³nÅ骩¥»
- 2019,2013,2003
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2010-5-3
- ³Ì«áµn¿ý
- 2024-11-14
|
§Ú¸Õ¹L ¤U±¤]·|·Ó§A©Ò¿ïªº¶¶§Ç¨Ì§Ç³B²z,¥u¬OµLªkª¾¹DÓ§OÅܼƪº¦WºÙ
Dim ZZ, rng
Set rng = ...
t8899 µoªí©ó 2014-11-2 08:38
§Ú·Q¨ìªº¦³¨âºØ¤èªk¥i¥H¹ê²{,
¤£¹Ln¬Ý§A«áÄòªº»Ý¨D¨M©wn¥ÎþºØ:
1. »Ýn§ì©Ò¿ï¨úÀx¦s®æªº¦ì§}¦r¦ê:- Sub MA3333()
- Dim rng, a$(), i%
- On Error Resume Next
- Set rng = Application.InputBox("½Ð¥Î·Æ¹«¿ï", Type:=8)
- ReDim a(0)
- For i = 1 To rng.Count
- ReDim Preserve a(i)
- a(i) = rng.Areas(i).Address
- MsgBox "§A¿ï¾Üªº²Ä " & i & "ÓÀx¦s®æ¦ì§}¬° : " & a(i)
- Next
- On Error GoTo 0
- End Sub
½Æ»s¥N½X 2. »Ýn§ì©Ò¿ï¨úªºÀx¦s®æª«¥ó:- Sub MA3333()
- Dim rng, i%
- On Error Resume Next
- Set rng = Application.InputBox("½Ð¥Î·Æ¹«¿ï", Type:=8)
- For i = 1 To rng.Count
- MsgBox "§A¿ï¾Üªº²Ä " & i & "ÓÀx¦s®æ¦ì§}¬° : " & rng.Areas(i).Address
- Next
- On Error GoTo 0
- End Sub
½Æ»s¥N½X ·|¥[ On Error Resume Next ¬O¦]¬°Y¨Ï¥ÎªÌ¤@¦¸¿ï¤F¶W¹L¤@ÓÀx¦s®æ®É,
«á±·|µo¥Í¿ù»~.
¦]¬°Y¦ì§}¬° $A$1:$B$1 ¦¹Ãþ®æ¦¡®É,
count ·|ºâ¨âÓ¦ì§},
¦ý areas «h¥uºâ¤@Ó¦ì§},
³Ì«á i ·|¤j©ó°}¦C³Ì¤j¯Á¤ÞÈ. |
|