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

[µo°Ý] Re:¦p¦óÅã¥Ü©Ò¦³°Ó«~(E4227 - E4234)¤§¥X³f¼ÐÅÒ¡H

¦p¦óÅã¥Ü©Ò¦³°Ó«~(E4227 - E4234)¤§¥X³f¼ÐÅÒ¡H

¥»©«³Ì«á¥Ñ R915327 ©ó 2011-1-29 22:02 ½s¿è

¦pÃD..ÀÉ©óªþ¥ó..

©ó¤º¦³E4227»PE4228µ²ªGªºÁ|¨Ò..

¥Ñ©ó¥»¨­¬O¤H¤u¿é¤J..¨Ã«D¬OExcel¥»¨­²£¥Í..

·Q½Ð°Ý¦p¦óÅý©Ò¦³°Ó«~ªº¼ÐÅÒ¤@¦¸¥þ³¡²£¥Í..

ÁÂÁÂÀ°¦£...:)

¥X³f.rar (9.55 KB)

TOP

¥»©«³Ì«á¥Ñ Hsieh ©ó 2011-1-30 20:53 ½s¿è

¦^´_ 1# R915327
  1. Private Sub CommandButton1_Click()
  2. j = 2: r = 2
  3. For Each a In Range([AS3], [AS65536].End(xlUp))
  4. k = a.Offset(, 3)
  5. For i = 1 To k
  6.   ar = Array(a, a.Offset(, 1), "", a.Offset(, 2))
  7.   Cells(r, j).Resize(4, 1) = Application.Transpose(ar)
  8.   j = j + 8
  9.   If j = 42 Then j = 2: r = r + 7
  10. Next
  11. If a.Offset(, 4) <> 0 Then
  12.   ar = Array(a, a.Offset(, 1), "", a.Offset(, 4))
  13.   Cells(r, j).Resize(4, 1) = Application.Transpose(ar)
  14.   j = j + 8
  15.   If j = 42 Then j = 2: r = r + 6
  16. End If
  17. Next
  18. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ R915327 ©ó 2011-1-30 20:20 ½s¿è

Hsieh ©êºp..¤p§Ì¿ùµoµ{¦¡°Ï..
¥»¨­¨S¾Ç¹LVB..¤£·|¨Ï¥Îµ{¦¡½X..

TOP

¦^´_ 3# R915327

   ¦¹ºØªí®æ®M¦L­n¥Î¨ç¼Æ¨Ó¼g·|²Ö¦º¤Hªº
VBA¼g¤J¬O¤ñ¸û®e©ö§¹¦¨ªº
¤£À´VBA?
1.À˵ø/±±¨î¤u¨ã½c¡A¿ï«ö¶s¡A¦b¤u§@ªí¤¤´¡¤J«ö¶s±±¨î¶µ
2.§ÖÂI2¤U¸Ó«ö¶s¡A¶i¤JVBA½s¿è¾¹
3.±N¥N½X½Æ»s¶K¨ì½s¿è°Ï¤¤
4.µ²§ô³]­p¼Ò¦¡
«ö¤U«ö¶s´N·|°õ¦æµ{¦¡¤F
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

«D±`·PÁÂ!! ^^

TOP

Hsieh ¦A¦¸½Ð±Ð..¦p¦ó±Nµ{¦¡½X®M¤J§¨±aªº·sÀÉ®×..­×§ï¡H

¥X³f¼ÐÅÒ.rar (16.08 KB)

TOP

[µo°Ý] Re:¦p¦óÅã¥Ü©Ò¦³°Ó«~(E4227 - E4234)¤§¥X³f¼ÐÅÒ¡H

[ª©¥DºÞ²z¯d¨¥]
  • Hsieh(2011-2-11 15:50): ½Ð¤Å­«½Æµo°Ý¡A§A­n¹ï©Ò±o¨ìªº¦^µª¤º®e¶i¦æ¤F¸Ñ¡A¦Û¤v¹Á¸Õ­×§ï

©Ó±µ¡i©«4¡­¡j..µo²{¦³­Óbugªº¦s¦b..±¡ªp¦p§¨ÀÉ©Ò¥Ü..
¨ä¤¤¼v¦L(1)¥¿±`..µM¦Ó¼v¦L(2)»P(3)«K¥X²{¦r¶]¥X®æ¤l¥~..½Ð°Ý¦p¦ó­×¥¿..ÁÂÁ¡I¡I :)

³æ¾Ú¼ÐÅÒ(³Ì·s)1.rar (50.35 KB)

TOP

¦^´_ 9# R915327
  1. Private Sub CommandButton1_Click()
  2. j = 2: r = 2 'jÅܼƬ°¥Ø¼ÐÄæ¦ì¡ArÅܼƬ°¥Ø¼Ð¦C¦ì
  3. For Each a In Range([AS3], [AS65536].End(xlUp))
  4. k = a.Offset(, 3)
  5. For i = 1 To k '¾ã¥]¸Ë
  6. ar = Array(a, a.Offset(, 1), "", a.Offset(, 2))
  7. Cells(r, j).Resize(4, 1) = Application.Transpose(ar)
  8. j = j + 8
  9. If j = 42 Then j = 2: r = r + 7 '·íj=42´N­nÂk¦^¦a2Äæ¦C¼Æ´N­n¥[¤W¼ÐÅÒ¦C¼Æ+1ªÅ¥Õ¦C
  10. Next
  11. If a.Offset(, 4) <> 0 Then '¦³´²¸Ë
  12.    ar = Array(a, a.Offset(, 1), "", a.Offset(, 4))
  13.    Cells(r, j).Resize(4, 1) = Application.Transpose(ar)
  14.    j = j + 8
  15.    If j = 42 Then j = 2: r = r + 7 '·íj=42´N­nÂk¦^¦a2Äæ¦C¼Æ´N­n¥[¤W¼ÐÅÒ¦C¼Æ+1ªÅ¥Õ¦C
  16. End If
  17. Next
  18. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

ÁÂÁ¡I Hsieh

TOP

        ÀR«ä¦Û¦b : ¦¨¥\¬OÀuÂIªºµo´§¡A¥¢±Ñ¬O¯ÊÂIªº²Ö¿n¡C
ªð¦^¦Cªí ¤W¤@¥DÃD