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

[µo°Ý] VBA¦p¦ó½Æ»s°Ñ·ÓÄæ¦ì«á¶K¤W¼Æ­È

[µo°Ý] VBA¦p¦ó½Æ»s°Ñ·ÓÄæ¦ì«á¶K¤W¼Æ­È

½Ð°Ý¤u§@ªí1ªºD2Äæ¬O°Ñ·ÓÄæ¦ì ¦p¦ó°õ¦æ1¦¸´N½Æ»s¤u§@ªí1ªºD2¨ì¤u§@ªí2ªºA2Äæ
­Y¹J¨ì¤u§@ªí2ªºA2¦³¼Æ­È´N©¹¤U¤@Äæ¤u§@ªí2ªºB2¶K¤W¨ä"¼Æ­È"  ¦A°õ¦æ1¦¸´N©¹¤u§@ªí2ªºC2¶K¤W¨ä"¼Æ­È"
·Ð½Ð¤j¤j«ü¾É  ÁÂÁÂ

¥»©«³Ì«á¥Ñ oobird ©ó 2013-8-31 19:23 ½s¿è
  1. Sub test()
  2.     a = Sheet1.[d2].Value
  3.     With Sheet2
  4.         c = IIf(.[a2] = "", 1, .[iv2].End(1).Column + 1)
  5.         .Cells(2, c) = a
  6.     End With
  7. End Sub
½Æ»s¥N½X

TOP

·PÁÂoobird¤j¤j«ü¾É
½Ð°Ý¦pªG½Æ»s¾ãÄæ»P½d³òªº»yªk
¬O§ï³o¼Ë¶Ü?
½d³ò
    a = Sheet1.[d2:d80].Value
¾ãÄæ
    a = Sheet1.[d].Value

TOP

¾ãÄæ³o¼Ëªí¥Ü¡Ga = Sheet1.[d:d].Value

TOP

½Ð°Ýoobird¤j¤j
§Ú½d³ò§ï³o¼Ë ¥L¥u¯à½Æ»sd2¼Æ­È d3¨ìd80³£µLªk½Æ»s¨ì ½Ð°Ý­þ¸ÌÁٻݭn§ó§ï ÁÂÁÂ
    Sub test()
        a = Sheet1.Range("d2:d80").Value
        With Sheet2
            c = IIf(.[a2] = "", 1, .[iv2].End(1).Column + 1)
            .Cells(2, c) = a
        End With
    End Sub

TOP

§AµLªk±N¤@­Ó½d³ò©ñ¦b¤@­ÓÀx¦s®æ¸Ì¡C
.Cells(2, c) = a §ï¬°
.Cells(2, c).resize(ubound(a),1) = a 'ÂX¤j½d³ò¨Ï»Pa¬Û·í

TOP

«D±`·PÁÂoobird¤j¤j¦Ê¦£¤¤«ü¾É¤p§Ì
§Ú·|§V¤O¾Ç²ß

TOP

        ÀR«ä¦Û¦b : ¦h°µ¦h±o¡C¤Ö°µ¦h¥¢¡C
ªð¦^¦Cªí ¤W¤@¥DÃD