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

(°}¦C°ÝÃD)±N¬Y¤@ª½Äæ¦s¦Ü°}¦C¤¤¨Ã¨ú¥X¬Y°}¦C­È©Ò¦bªº¦C¼Æ

(°}¦C°ÝÃD)±N¬Y¤@ª½Äæ¦s¦Ü°}¦C¤¤¨Ã¨ú¥X¬Y°}¦C­È©Ò¦bªº¦C¼Æ

¥»©«³Ì«á¥Ñ greetingsfromtw ©ó 2016-10-7 12:45 ½s¿è

¦U¦ì«e½ú¦n,
¤p§Ìªì¾Ç°}¦C,¦³­Ó°ÝÃD·Q½Ð±Ð,
ªþÀɤε{¦¡½X¦p¤U:

20161007-°ÝÃD-¨ú¥X°}¦C­Èªº¦C¼Æ.zip (13.17 KB)
  1. Sub arrayTest()

  2. Dim ar

  3. Range("a2").Resize(Cells(Rows.Count, 1).End(xlUp).Row, 1).Select
  4. Selection.Resize(Selection.Rows.Count - 1, 1).Select


  5. ar = Selection

  6. MsgBox ar(3, 1)

  7. ar(3, 1).Select

  8. End Sub
½Æ»s¥N½X
°²³]¤µ¤Ñ¦³¤@Äæ¦ì,¦¹¨Ò¬°AÄæ,
·Q§â¸ÓÄæ¦ì(±qA2¶}©l)ªº«DªÅ¥ÕÀx¦s®æ¦s¶i°}¦C¤¤,
¨Ã¨ú¥X¸Ó°}¦C­Èªº©Ò¦b¦C¼Æ,

¤£ª¾¬O§_¥i¦æ?

¤p§Ì¸ÕµÛ¥Îmsgbox¥hÅã¥Ü°}¦Cªº­È,¥i¥H¥¿±`Åã¥Ü,
¦ý¬O·Q­nÅã¥Ü¸Ó°}¦C­Èªº©Ò¦b¦C¼Æ,
´N·|´£¥Ü¿ù»~:
¦¹³B»Ý­nª«¥ó,

§Æ±æ«e½ú¥i¥H¤£§[«üÂI°g¬z,¤Q¤À·PÁÂ.

¦^´_ 2# PKKO


«ÜÁÂÁÂPKKO¤j¼ö¤ß´£¨Ñªºµ{¦¡½X,
½T¹ê³o¼Ë´N¥i¥H¿ï¨ú¤F,
§Ú¦A¬ã¨s¤@¤U.

¦A¦¸·PÁÂ.

TOP

¦^´_ 1# greetingsfromtw

°ò¥»¤W°}¦C¬O¤£¯à³Q¿ï¨úªº
¥u¦³ª«¥ó¤~¯à³Q¿ï¨ú(¬¡­¶Ã¯¡B¤À­¶¡BÀx¦s®æµ¥µ¥)
¤U­±¬O²³æ½d¨Ò¡A¥i¦Û¦æ¹B¥Î
  1. Sub arrayTest()

  2. Dim ar

  3. ar = Range("a1").Resize(Cells(Rows.Count, 1).End(xlUp).Row, 2)
  4. For i = 2 To UBound(ar)
  5.     If ar(i, 1) <> "" Then
  6.         ar(i, 2) = i
  7.     End If
  8. Next

  9. [a1].Resize(UBound(ar), 2).Value = ar
  10. '­Y­n¿ï¨ú,½Ð¦Û¦æÀ³¥Î
  11. MsgBox ar(2, 2)
  12. Cells(ar(2, 2), 1).Select
  13. End Sub
½Æ»s¥N½X
PKKO

TOP

        ÀR«ä¦Û¦b : ®É®É¦n¤ß´N¬O®É®É¦n¤é¡C
ªð¦^¦Cªí ¤W¤@¥DÃD