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

[µo°Ý] ¦p¦ó¦bAÄæ ¦Û°Ê¶ñ¤W½s¸¹

[µo°Ý] ¦p¦ó¦bAÄæ ¦Û°Ê¶ñ¤W½s¸¹

¦p¦ó¦bAÄæ ¦Û°Ê¶ñ¤W½s¸¹¡A½Ð¦U¦ì°ª¤â«ü敎³oµ{¦¡½X¦p¦ó¼g? ÁÂÁÂ!!
AÄæ          BÄæ
               1234
               23
               123

               234
               567
               
               123
               678
               4567
               185

§¹¦¨«á
AÄæ          BÄæ
1             1234
1             23
1             123

2             234
2             567
               
3             123
3             678
3             4567
3             185

¦^´_ 14# john2006168

§â
  1. For Each c In Range([A10], [A65536].End(xlUp)).Offset(0, 5)
  2. c.Value = c.Offset(0, -5).Value & c.Offset(0, -1).Value
  3. Next
½Æ»s¥N½X
´«¦¨
  1. i=0
  2. For Each c In Range([A10], [A65536].End(xlUp)).Offset(0, 5)
  3. i=i+1
  4. worksheets("sheet2").range("e1").offset(i) = c.Offset(0, -5).Value & c.Offset(0, -1).Value
  5. Next
½Æ»s¥N½X
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

[ª©¥DºÞ²z¯d¨¥]
  • Hsieh(2010-7-29 21:23): ¦Û¤v³£¤£«ä¦Ò,¥u¾ß²{¦¨,¥Ã»·³£¬Oµo°ÝªÌ

¦^´_ 13# kimbal

thanks ,¦pªG§Ú·Q¦bsheet2 show ¥X¨ÓÀ³¸Ó«ç»ò¼g

TOP

¥»©«³Ì«á¥Ñ kimbal ©ó 2010-7-29 13:28 ½s¿è

¥[¦bfÄæ
  1. Sub nn()
  2. Dim Rng As Range
  3. [A10].Insert xlToRight
  4. [A10] = "plt no"
  5. Set Rng = Range([A11], [A65536].End(xlUp)).SpecialCells(xlCellTypeConstants)
  6. For i = 1 To Rng.Areas.Count
  7.    mystr = Rng.Areas(i).Address
  8.    Rng.Areas(i).Insert xlToRight
  9.    Range(mystr).Value =format( i,"'00")
  10. Next
  11. Range([A11], [A65536].End(xlUp)).SpecialCells(xlCellTypeBlanks).EntireRow.Delete

  12. For Each c In Range([A10], [A65536].End(xlUp)).Offset(0, 5)
  13. c.Value = c.Offset(0, -5).Value & c.Offset(0, -1).Value
  14. Next
  15. End Sub
½Æ»s¥N½X
À´±oµo°Ý,µª®×´N·|¦b¨ä¤¤

¤µ¤éの¤@¬íは  ©ú¤éにない
http://kimbalko-chi.blogspot.com
http://kimbalko.blogspot.com

TOP

Book3.zip (4.62 KB) ¦^´_ 11# Hsieh


    ¦hÁ¦Ѯv,¥t¥~§Ú·Q±Nplt no ¥[¤Wref no¦n¹³sheet02,½Ð¦A¤TÀ°¦£

TOP

¦^´_ 10# john2006168
  1. Sub nn()
  2. Dim Rng As Range
  3. [A10].Insert xlToRight
  4. [A10] = "plt no"
  5. Set Rng = Range([A11], [A65536].End(xlUp)).SpecialCells(xlCellTypeConstants)
  6. For i = 1 To Rng.Areas.Count
  7. mystr = Rng.Areas(i).Address
  8.    Rng.Areas(i).Insert xlToRight
  9.    Range(mystr).Value =format( i,"'00")
  10. Next
  11. Range([A11], [A65536].End(xlUp)).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
  12. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¦^´_ 9# Hsieh


    ¦Ñ®v¦pªGplt no¥Î01 ,02,03ªí¥Ü,À³¸Ó«ç»ò§ï

TOP

¦^´_ 8# john2006168
  1. Sub nn()
  2. Dim Rng As Range
  3. [A10].Insert xlToRight
  4. [A10] = "plt no"
  5. Set Rng = Range([A11], [A65536].End(xlUp)).SpecialCells(xlCellTypeConstants)
  6. For i = 1 To Rng.Areas.Count
  7. mystr = Rng.Areas(i).Address
  8.    Rng.Areas(i).Insert xlToRight
  9.    Range(mystr).Value = i
  10. Next
  11. Range([A11], [A65536].End(xlUp)).SpecialCells(xlCellTypeBlanks).EntireRow.Delete
  12. End Sub
½Æ»s¥N½X
¾Ç®üµL²P_¤£®¢¤U°Ý

TOP

¥»©«³Ì«á¥Ñ john2006168 ©ó 2010-7-29 00:50 ½s¿è
¦^´_  aoss98
Hsieh µoªí©ó 2010-7-27 22:22


tesst2010.zip (8.4 KB)
    ¦Ñ®v,§Ú¦³Ãþ¦üªº°ÝÃD¬Û¦Pªº°ÝÃD,½Ð°Ý¥ÎVBA«ç»ò¼g

tesst2010.zip (8.4 KB)

TOP

ÁÂÁ¦U¦ì«ü±Ð!!!

TOP

        ÀR«ä¦Û¦b : §Ú­Ì­n°µ¦nªÀ·|ªºÀô«O¡A¤]­n°µ¦n¤º¤ßªºÀô«O¡C
ªð¦^¦Cªí ¤W¤@¥DÃD