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

[µo°Ý] ¦³¿ìªk³æ¿W¥h°£°}¦C¤ºªº¬YÄæ¦ì©Î¬O¬Y¦C¶Ü?

[µo°Ý] ¦³¿ìªk³æ¿W¥h°£°}¦C¤ºªº¬YÄæ¦ì©Î¬O¬Y¦C¶Ü?

¨Ò¦p¤Uªí:4*3ªº°}¦C

¤ÀÃþ ¼Æ¶q  ¦¨¥»
°ê²£    1      4
¶i¤f    2      5
¦Û»s    3      6

¦³¬Æ»ò«ü¥O¥i¥HÅý°}¦CÅܦ¨¤Uªí,§â­ì¥»(3,1)(3,2)(3,3)³£§R°£±¼,¨Ã¥B¤U­±ªº¸ê®Æ·|©¹¤W»¼¸É?

¤ÀÃþ ¼Æ¶q  ¦¨¥»
°ê²£    1      4
¦Û»s    3      6

µ{¦¡½X¦p¤U:
  1. rng=[a1].resize(4,3).value
  2. for i=1 to 3
  3.   rng(3,i)=empty
  4. next
½Æ»s¥N½X
'§Ú¥u·|±N²Ä¤T¦C³£Åܦ¨ªÅ¥Õ,¦ý¬O²Ä¥|¦C¨Ã¤£·|¦Û°Êºô¤W»¼¸É,¦³³oºØ¥\¯à¥i¥H¹³EXCEL§R°£¦C¤@¼Ë,¦Û°Ê©¹¤W¸É¶Ü?
PKKO

¦ü¥G¨S¦³¡I

TOP

¨Ï¥Îredim preserve ªº¤è¦¡
¬ö¿ý¨ì¥t¤@­Ó°}¦C
´N¯à±Æ°£¤£­nªº
  1. Sub test()
  2. Dim rng_new()
  3. n = 0
  4. Rng = [a1].Resize(4, 3).Value
  5. For i = 1 To 4
  6.     If Rng(i, 3) <> Empty Then
  7.         n = n + 1
  8.         ReDim Preserve rng_new(1 To 3, 1 To n)
  9.         For c = 1 To 3
  10.             rng_new(c, n) = Rng(i, c)
  11.         Next
  12.     End If
  13. Next

  14. End Sub
½Æ»s¥N½X
¦r¨å¨â¦U¦r ÁÙ¯uÃø²z¸Ñ

TOP

¦^´_ 3# freeffly


¥i¥H±Æ°£¤£­nªº¨S¿ù
§Ú­«·s³Ð¥ß¤@­Ó°}¦C¤]¥i¥H±Æ°£¤£­nªº,¦ý¦h¤@¹D¥\¤Ò
©Ò¥H¤~·Q°Ý¬O§_¦³³æ¿W¨ú¥Xªº³¡¤À
PKKO

TOP

        ÀR«ä¦Û¦b : ­ì½Ì§O¤H´N¬Oµ½«Ý¦Û¤v¡C
ªð¦^¦Cªí ¤W¤@¥DÃD